From 63b889918043a5294bd8548bdb6d1ec499463baa Mon Sep 17 00:00:00 2001 From: BST <107313913+alvin000009238@users.noreply.github.com> Date: Tue, 31 Mar 2026 21:32:12 +0800 Subject: [PATCH 01/13] Compact header spacing and mobile layout --- frontend/styles/header.css | 31 +++++++++++++++++++------------ frontend/styles/responsive.css | 21 ++++++++++++++++----- frontend/styles/utilities.css | 4 ++-- 3 files changed, 37 insertions(+), 19 deletions(-) diff --git a/frontend/styles/header.css b/frontend/styles/header.css index 309a289..0e17a42 100644 --- a/frontend/styles/header.css +++ b/frontend/styles/header.css @@ -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; max-width: 1200px; @@ -68,9 +68,9 @@ justify-content: center; - width: 36px; + width: 32px; - height: 36px; + height: 32px; background: var(--color-primary); @@ -86,9 +86,9 @@ .logo-icon svg { - width: 20px; + width: 18px; - height: 20px; + height: 18px; } @@ -98,6 +98,8 @@ font-size: 20px; + line-height: 1.2; + font-weight: 600; color: var(--color-text-main); @@ -112,6 +114,8 @@ background-clip: unset; + margin: 0; + } @@ -122,7 +126,9 @@ font-size: 12px; - margin-top: 1px; + line-height: 1.2; + + margin: 1px 0 0; font-weight: 400; @@ -138,7 +144,7 @@ align-items: center; - gap: 12px; + gap: 10px; position: relative; @@ -197,6 +203,8 @@ font-size: 12px; + line-height: 1.2; + font-weight: 500; color: var(--color-text-secondary); @@ -241,9 +249,9 @@ gap: 8px; - height: 40px; + min-height: 36px; - padding: 0 18px; + padding: 0 14px; background: var(--color-primary); @@ -484,4 +492,3 @@ visibility: visible; color: var(--color-text-muted); } - diff --git a/frontend/styles/responsive.css b/frontend/styles/responsive.css index b358f42..ec9b587 100644 --- a/frontend/styles/responsive.css +++ b/frontend/styles/responsive.css @@ -24,9 +24,13 @@ .header-content { - flex-direction: column; + flex-direction: row; + + align-items: center; + + gap: 10px; - align-items: flex-start; + flex-wrap: nowrap; } @@ -34,9 +38,11 @@ .data-time-box { - align-self: stretch; + align-self: auto; - justify-content: space-between; + justify-content: flex-end; + + gap: 8px; } @@ -45,12 +51,18 @@ justify-content: flex-end; } + .time-info { + display: none; + } + .logo-text h1 { font-size: 18px; + line-height: 1.2; + } @@ -194,4 +206,3 @@ } } - diff --git a/frontend/styles/utilities.css b/frontend/styles/utilities.css index b6c177c..5d6bc33 100644 --- a/frontend/styles/utilities.css +++ b/frontend/styles/utilities.css @@ -75,8 +75,8 @@ } .theme-toggle-btn { - width: 40px; - height: 40px; + width: 36px; + height: 36px; padding: 0; justify-content: center; background: var(--color-surface-elevated); From 6f885f8cc813244ae7d4926e8796e6dbc6f69abf Mon Sep 17 00:00:00 2001 From: BST <107313913+alvin000009238@users.noreply.github.com> Date: Tue, 31 Mar 2026 21:44:29 +0800 Subject: [PATCH 02/13] Make header compact and resilient on narrow screens --- frontend/styles/header.css | 24 ++++++++++++++++- frontend/styles/responsive.css | 47 +++++++++++++++++++++++----------- public/index.html | 6 ++--- 3 files changed, 58 insertions(+), 19 deletions(-) diff --git a/frontend/styles/header.css b/frontend/styles/header.css index 0e17a42..a622d52 100644 --- a/frontend/styles/header.css +++ b/frontend/styles/header.css @@ -56,6 +56,14 @@ gap: 12px; + min-width: 0; + + flex: 1 1 auto; + +} + +.header-title-group { + min-width: 0; } @@ -116,6 +124,12 @@ margin: 0; + overflow: hidden; + + text-overflow: ellipsis; + + white-space: nowrap; + } @@ -132,6 +146,12 @@ font-weight: 400; + overflow: hidden; + + text-overflow: ellipsis; + + white-space: nowrap; + } @@ -158,11 +178,13 @@ backdrop-filter: none; + min-width: 0; + } .header-actions { justify-content: flex-end; - flex-wrap: nowrap; + flex-wrap: wrap; } diff --git a/frontend/styles/responsive.css b/frontend/styles/responsive.css index ec9b587..1ba01d8 100644 --- a/frontend/styles/responsive.css +++ b/frontend/styles/responsive.css @@ -24,13 +24,9 @@ .header-content { - flex-direction: row; + flex-wrap: wrap; - align-items: center; - - gap: 10px; - - flex-wrap: nowrap; + gap: 8px; } @@ -38,31 +34,27 @@ .data-time-box { - align-self: auto; + align-self: stretch; - justify-content: flex-end; + justify-content: space-between; gap: 8px; + flex-wrap: wrap; + } .header-actions { - width: auto; + width: 100%; justify-content: flex-end; } - .time-info { - display: none; - } - .logo-text h1 { font-size: 18px; - line-height: 1.2; - } @@ -173,6 +165,31 @@ @media (max-width: 480px) { + .header { + margin-bottom: 20px; + } + + .time-label { + display: none; + } + + .time-info { + padding-right: 8px; + } + + .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; + } + .student-details { flex-direction: column; diff --git a/public/index.html b/public/index.html index 26933f0..085589b 100644 --- a/public/index.html +++ b/public/index.html @@ -40,7 +40,7 @@ - + @@ -68,7 +68,7 @@
--