Skip to content

Commit db7b120

Browse files
Merge pull request #104 from alvin000009238/codex/reduce-header-height-for-better-ux-cmpi18
Show read-only status via header badge and refactor header styles/responsiveness
2 parents 8252d9e + 69f46b6 commit db7b120

3 files changed

Lines changed: 12 additions & 4 deletions

File tree

frontend/styles/compatibility.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,8 @@ body.read-only-mode .header {
100100

101101
}
102102

103+
body.read-only-mode .data-time-box {
104+
width: 100%;
105+
justify-content: space-between;
106+
}
103107

frontend/styles/header.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,10 @@ body.read-only-mode .header-status-badge {
213213
display: inline-flex;
214214
}
215215

216+
body.read-only-mode .header-status-badge:empty {
217+
display: none;
218+
}
219+
216220
.header-actions {
217221
justify-content: flex-end;
218222
flex-wrap: nowrap;
@@ -232,7 +236,7 @@ body.read-only-mode .header-status-badge {
232236

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

235-
align-items: flex-end;
239+
align-items: center;
236240

237241
}
238242

@@ -314,7 +318,7 @@ body.read-only-mode .header-status-badge {
314318

315319
border: none;
316320

317-
border-radius: var(--radius-pill);
321+
border-radius: var(--radius-sm);
318322

319323
color: var(--md-sys-color-on-primary);
320324

public/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
</noscript>
4141
<script src="https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit" async defer></script>
4242
<script src="/theme-init.js"></script>
43-
<link rel="stylesheet" href="/dist/main-D-IViaAQ.css" id="vite-css">
43+
<link rel="stylesheet" href="/dist/main-bt8E1vXG.css" id="vite-css">
4444
<link rel="icon" type="image/x-icon" href="/favicon.ico">
4545
</head>
4646

@@ -528,7 +528,7 @@ <h3 class="section-title">
528528
</footer>
529529
</div>
530530

531-
<script type="module" src="/dist/main-eCe3WGCp.js"></script>
531+
<script type="module" src="/dist/main-D-w4GNFQ.js"></script>
532532
</body>
533533

534534
</html>

0 commit comments

Comments
 (0)