Fix layout

This commit is contained in:
Will Miao
2025-03-13 20:37:23 +08:00
parent e7233c147d
commit 0b0caa1142
11 changed files with 175 additions and 75 deletions

View File

@@ -2,10 +2,10 @@
.modal {
display: none;
position: fixed;
top: 0;
top: 48px; /* Start below the header */
left: 0;
width: 100%;
height: 100%;
height: calc(100% - 48px); /* Adjust height to exclude header */
background: rgba(0, 0, 0, 0.2); /* 调整为更淡的半透明黑色 */
z-index: var(--z-modal);
overflow: hidden; /* 改为 hidden防止双滚动条 */
@@ -24,7 +24,7 @@ body.modal-open {
max-width: 800px;
height: auto;
max-height: 90vh;
margin: 2rem auto;
margin: 1rem auto; /* Reduce top margin from 5rem to 1rem */
background: var(--lora-surface);
border-radius: var(--border-radius-base);
padding: var(--space-3);