diff --git a/frontend/share.js b/frontend/share.js index c167288..77347ef 100644 --- a/frontend/share.js +++ b/frontend/share.js @@ -164,10 +164,8 @@ export async function checkSharedLink() { if (data.success) { initDashboard(data.data); - document.querySelectorAll('.header-status-badge') - .forEach((headerStatusBadge) => { - headerStatusBadge.textContent = '僅供檢視'; - }); + const headerStatusBadge = document.getElementById('headerStatusBadge'); + if (headerStatusBadge) headerStatusBadge.textContent = '僅供檢視'; if (updateTime) updateTime.textContent = '分享存檔'; } else { diff --git a/frontend/styles/compatibility.css b/frontend/styles/compatibility.css index e6d07e9..6daaaad 100644 --- a/frontend/styles/compatibility.css +++ b/frontend/styles/compatibility.css @@ -66,18 +66,6 @@ -.share-indicator { - - display: flex; - - align-items: center; - - margin-right: 12px; - -} - - - /* Read Only Mode */ body.read-only-mode .import-dropdown, diff --git a/frontend/styles/header.css b/frontend/styles/header.css index d4c685e..a0beaf9 100644 --- a/frontend/styles/header.css +++ b/frontend/styles/header.css @@ -247,7 +247,15 @@ body.read-only-mode .header-status-badge:empty { .time-label { - 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; } diff --git a/public/index.html b/public/index.html index 90d5a1e..738aebf 100644 --- a/public/index.html +++ b/public/index.html @@ -72,7 +72,7 @@
--
- +