Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 34 additions & 2 deletions frontend/styles/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,20 @@

white-space: nowrap;

<<<<<<< codex/reduce-header-height-for-better-ux-d99l1w
flex: 1 1 auto;

min-width: 0;

}

.subtitle-row {
display: flex;
align-items: baseline;
gap: 6px;
min-width: 0;
=======
>>>>>>> dev
}


Expand All @@ -162,7 +176,7 @@

display: flex;

align-items: center;
align-items: flex-end;

gap: 10px;

Expand All @@ -185,6 +199,19 @@
.header-status-badge {
display: none;
align-items: center;
<<<<<<< codex/reduce-header-height-for-better-ux-d99l1w
min-height: 18px;
padding: 1px 6px;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The color-mix() function is a modern CSS feature. While it has good support in recent browser versions, providing a fallback background color is recommended to ensure the badge remains visually distinct in older browsers that do not support this syntax.

Suggested change
padding: 1px 6px;
background: var(--color-warning-muted); /* Fallback for older browsers */
background: color-mix(in srgb, var(--color-warning-muted) 40%, transparent);

border: 1px solid var(--color-warning-muted);
border-radius: var(--radius-pill);
color: var(--color-warning);
background: color-mix(in srgb, var(--color-warning-muted) 40%, transparent);
font-size: 10px;
font-weight: 500;
line-height: 1.2;
white-space: nowrap;
flex-shrink: 0;
=======
min-height: 24px;
padding: 2px 8px;
border: 1px solid var(--color-warning-muted);
Expand All @@ -195,6 +222,7 @@
font-weight: 500;
line-height: 1.2;
white-space: nowrap;
>>>>>>> dev
}

body.read-only-mode .header-status-badge {
Expand All @@ -220,6 +248,8 @@ body.read-only-mode .header-status-badge {

border-right: 1px solid var(--color-border-subtle);

align-items: flex-end;

}


Expand Down Expand Up @@ -248,7 +278,9 @@ body.read-only-mode .header-status-badge {

font-weight: 500;

color: var(--color-text-secondary);
color: var(--color-text-muted);

opacity: 0.78;

font-variant-numeric: tabular-nums;

Expand Down
9 changes: 6 additions & 3 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
</noscript>
<script src="https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit" async defer></script>
<script src="/theme-init.js"></script>
<link rel="stylesheet" href="/dist/main-CYN_M65J.css" id="vite-css">
<link rel="stylesheet" href="/dist/main-D-IViaAQ.css" id="vite-css">
<link rel="icon" type="image/x-icon" href="/favicon.ico">
</head>

Expand Down Expand Up @@ -70,7 +70,10 @@ <h2>中大壢中成績分析平台</h2>
</div>
<div class="logo-text header-title-group">
<h1>成績分析平台</h1>
<p class="subtitle" id="examTitle">--</p>
<div class="subtitle-row">
<p class="subtitle" id="examTitle">--</p>
<span class="header-status-badge" id="headerStatusBadge" aria-live="polite"></span>
</div>
</div>
</div>
<div class="data-time-box">
Expand Down Expand Up @@ -525,7 +528,7 @@ <h3 class="section-title">
</footer>
</div>

<script type="module" src="/dist/main-AkA2Ib98.js"></script>
<script type="module" src="/dist/main-eCe3WGCp.js"></script>
</body>

</html>
Loading