-
Notifications
You must be signed in to change notification settings - Fork 0
Compact header height for better above-the-fold density #101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,7 +8,7 @@ | |
|
|
||
| z-index: 100; | ||
|
|
||
| padding: 14px 0; | ||
| padding: 10px 0; | ||
|
|
||
| margin: 0 -24px 40px; | ||
|
|
||
|
|
@@ -36,9 +36,9 @@ | |
|
|
||
| align-items: center; | ||
|
|
||
| flex-wrap: wrap; | ||
| flex-wrap: nowrap; | ||
|
|
||
| gap: 16px; | ||
| gap: 12px; | ||
|
Comment on lines
37
to
+41
|
||
|
|
||
| max-width: 1200px; | ||
|
|
||
|
|
@@ -56,6 +56,14 @@ | |
|
|
||
| gap: 12px; | ||
|
|
||
| min-width: 0; | ||
|
|
||
| flex: 1 1 auto; | ||
|
|
||
| } | ||
|
|
||
| .header-title-group { | ||
| min-width: 0; | ||
| } | ||
|
|
||
|
|
||
|
|
@@ -68,9 +76,9 @@ | |
|
|
||
| justify-content: center; | ||
|
|
||
| width: 36px; | ||
| width: 32px; | ||
|
|
||
| height: 36px; | ||
| height: 32px; | ||
|
|
||
| background: var(--color-primary); | ||
|
|
||
|
|
@@ -86,9 +94,9 @@ | |
|
|
||
| .logo-icon svg { | ||
|
|
||
| width: 20px; | ||
| width: 18px; | ||
|
|
||
| height: 20px; | ||
| height: 18px; | ||
|
|
||
| } | ||
|
|
||
|
|
@@ -98,6 +106,8 @@ | |
|
|
||
| font-size: 20px; | ||
|
|
||
| line-height: 1.2; | ||
|
|
||
| font-weight: 600; | ||
|
|
||
| color: var(--color-text-main); | ||
|
|
@@ -112,6 +122,14 @@ | |
|
|
||
| background-clip: unset; | ||
|
|
||
| margin: 0; | ||
|
|
||
| overflow: hidden; | ||
|
|
||
| text-overflow: ellipsis; | ||
|
|
||
| white-space: nowrap; | ||
|
|
||
| } | ||
|
|
||
|
|
||
|
|
@@ -122,10 +140,18 @@ | |
|
|
||
| font-size: 12px; | ||
|
|
||
| margin-top: 1px; | ||
| line-height: 1.2; | ||
|
|
||
| margin: 1px 0 0; | ||
|
|
||
| font-weight: 400; | ||
|
|
||
| overflow: hidden; | ||
|
|
||
| text-overflow: ellipsis; | ||
|
|
||
| white-space: nowrap; | ||
|
|
||
| } | ||
|
|
||
|
|
||
|
|
@@ -138,7 +164,7 @@ | |
|
|
||
| align-items: center; | ||
|
|
||
| gap: 12px; | ||
| gap: 10px; | ||
|
|
||
| position: relative; | ||
|
|
||
|
|
@@ -152,6 +178,8 @@ | |
|
|
||
| backdrop-filter: none; | ||
|
|
||
| min-width: 0; | ||
|
|
||
| } | ||
|
|
||
| .header-actions { | ||
|
|
@@ -197,6 +225,8 @@ | |
|
|
||
| font-size: 12px; | ||
|
|
||
| line-height: 1.2; | ||
|
|
||
| font-weight: 500; | ||
|
|
||
| color: var(--color-text-secondary); | ||
|
|
@@ -241,9 +271,9 @@ | |
|
|
||
| gap: 8px; | ||
|
|
||
| height: 40px; | ||
| min-height: 36px; | ||
|
|
||
| padding: 0 18px; | ||
| padding: 0 14px; | ||
|
|
||
| background: var(--color-primary); | ||
|
|
||
|
|
@@ -484,4 +514,3 @@ visibility: visible; | |
| color: var(--color-text-muted); | ||
|
|
||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -22,21 +22,11 @@ | |||||||||||||||||||||
|
|
||||||||||||||||||||||
|
|
||||||||||||||||||||||
|
|
||||||||||||||||||||||
| .header-content { | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| flex-direction: column; | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| align-items: flex-start; | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| } | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
|
|
||||||||||||||||||||||
|
|
||||||||||||||||||||||
| .data-time-box { | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| align-self: stretch; | ||||||||||||||||||||||
| justify-content: flex-end; | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| justify-content: space-between; | ||||||||||||||||||||||
| gap: 8px; | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| } | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
|
|
@@ -161,6 +151,46 @@ | |||||||||||||||||||||
|
|
||||||||||||||||||||||
| @media (max-width: 480px) { | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| .header { | ||||||||||||||||||||||
| margin-bottom: 20px; | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| .header-content { | ||||||||||||||||||||||
| flex-wrap: wrap; | ||||||||||||||||||||||
| gap: 8px; | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| .data-time-box { | ||||||||||||||||||||||
| width: 100%; | ||||||||||||||||||||||
| justify-content: space-between; | ||||||||||||||||||||||
| flex-wrap: wrap; | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| .time-label { | ||||||||||||||||||||||
| display: none; | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| .time-info { | ||||||||||||||||||||||
| padding-right: 8px; | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
|
Comment on lines
+173
to
+175
|
||||||||||||||||||||||
|
|
||||||||||||||||||||||
| .time-value { | ||||||||||||||||||||||
| font-size: 11px; | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| .header-actions .import-dropdown-btn { | ||||||||||||||||||||||
| min-width: 36px; | ||||||||||||||||||||||
| padding: 0 10px; | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| .header-actions .import-dropdown-btn > span:last-child { | ||||||||||||||||||||||
| display: none; | ||||||||||||||||||||||
|
||||||||||||||||||||||
| display: none; | |
| position: absolute; | |
| width: 1px; | |
| height: 1px; | |
| padding: 0; | |
| margin: -1px; | |
| overflow: hidden; | |
| clip: rect(0, 0, 0, 0); | |
| white-space: nowrap; | |
| border: 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
將
.header-content設置為flex-wrap: nowrap雖然能確保高度固定,但在內容較多(例如標題文字較長或導航項目增加)的情況下,可能會導致內容溢出容器。建議為標題區域設置min-width: 0並對h1使用text-overflow: ellipsis,以確保在空間不足時能優雅處理。