Skip to content

Commit 90c8d33

Browse files
Merge pull request #109 from alvin000009238/codex/reduce-header-height-for-better-ux-vbfbwp
Header & responsive layout polish; add read-only status badge for shared links
2 parents 518ed78 + 6e18f6a commit 90c8d33

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

frontend/share.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,10 @@ export async function checkSharedLink() {
164164
if (data.success) {
165165
initDashboard(data.data);
166166

167-
const headerStatusBadge = document.getElementById('headerStatusBadge');
168-
if (headerStatusBadge) headerStatusBadge.textContent = '僅供檢視';
167+
document.querySelectorAll('.header-status-badge')
168+
.forEach((headerStatusBadge) => {
169+
headerStatusBadge.textContent = '僅供檢視';
170+
});
169171

170172
if (updateTime) updateTime.textContent = '分享存檔';
171173
} else {

public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ <h2>中大壢中成績分析平台</h2>
7272
<h1>成績分析平台</h1>
7373
<div class="subtitle-row">
7474
<p class="subtitle" id="examTitle">--</p>
75-
<span class="header-status-badge" id="headerStatusBadge" aria-live="polite"></span>
75+
<span class="header-status-badge" aria-live="polite"></span>
7676
</div>
7777
</div>
7878
</div>

0 commit comments

Comments
 (0)