mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-25 15:15:44 -03:00
feat(modal): use CSS variables for header height and improve recipe modal layout
This commit is contained in:
@@ -32,6 +32,7 @@ html, body {
|
|||||||
--text-muted: #6c757d;
|
--text-muted: #6c757d;
|
||||||
--card-bg: #ffffff;
|
--card-bg: #ffffff;
|
||||||
--border-color: #e0e0e0;
|
--border-color: #e0e0e0;
|
||||||
|
--header-height: 48px;
|
||||||
|
|
||||||
/* Color Components */
|
/* Color Components */
|
||||||
--lora-accent-l: 68%;
|
--lora-accent-l: 68%;
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
.modal {
|
.modal {
|
||||||
display: none;
|
display: none;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 48px; /* Start below the header */
|
top: var(--header-height, 48px); /* Start below the header */
|
||||||
left: 0;
|
left: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: calc(100% - 48px); /* Adjust height to exclude header */
|
height: calc(100% - var(--header-height, 48px)); /* Adjust height to exclude header */
|
||||||
background: rgba(0, 0, 0, 0.2); /* 调整为更淡的半透明黑色 */
|
background: rgba(0, 0, 0, 0.2); /* 调整为更淡的半透明黑色 */
|
||||||
z-index: var(--z-modal);
|
z-index: var(--z-modal);
|
||||||
overflow: auto; /* Change from hidden to auto to allow scrolling */
|
overflow: auto; /* Change from hidden to auto to allow scrolling */
|
||||||
@@ -23,7 +23,7 @@ body.modal-open {
|
|||||||
position: relative;
|
position: relative;
|
||||||
max-width: 800px;
|
max-width: 800px;
|
||||||
height: auto;
|
height: auto;
|
||||||
max-height: calc(90vh);
|
max-height: calc(100vh - var(--header-height, 48px) - 5.5rem); /* Subtract header height and modal margins */
|
||||||
margin: 1rem auto; /* Keep reduced top margin */
|
margin: 1rem auto; /* Keep reduced top margin */
|
||||||
background: var(--lora-surface);
|
background: var(--lora-surface);
|
||||||
border-radius: var(--border-radius-base);
|
border-radius: var(--border-radius-base);
|
||||||
|
|||||||
@@ -211,6 +211,20 @@
|
|||||||
border: 1px solid var(--lora-border);
|
border: 1px solid var(--lora-border);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#recipeModal .modal-content {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
#recipeModal .modal-body {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: var(--space-2);
|
||||||
|
flex: 1 1 auto;
|
||||||
|
min-height: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
/* Top Section: Preview and Gen Params */
|
/* Top Section: Preview and Gen Params */
|
||||||
.recipe-top-section {
|
.recipe-top-section {
|
||||||
display: grid;
|
display: grid;
|
||||||
@@ -474,9 +488,10 @@
|
|||||||
|
|
||||||
/* Bottom Section: Resources */
|
/* Bottom Section: Resources */
|
||||||
.recipe-bottom-section {
|
.recipe-bottom-section {
|
||||||
max-height: 320px;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
flex: 1 1 auto;
|
||||||
|
min-height: 0;
|
||||||
border-top: 1px solid var(--border-color);
|
border-top: 1px solid var(--border-color);
|
||||||
padding-top: var(--space-2);
|
padding-top: var(--space-2);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user