Skip to content

Commit e2f2cb1

Browse files
fix(web): stack receipt ledger rows on mobile so values stop clipping
The repro-ledger row used a fixed 28/200/1fr/auto grid wrapped in an overflow:hidden container, so on phone widths the value column collapsed and the tag column slipped under the clip. Add a <=720px template that puts key+tag on one line and value+script path on the next, with the seal spanning both rows, plus a phone-tier squeeze at <=600px.
1 parent 927eefe commit e2f2cb1

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

web/app/globals.css

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2356,6 +2356,29 @@ h1.hero-title .accent::after {
23562356
font-family: var(--f-display); font-style: normal; font-weight: 700; font-size: 20px; color: var(--vermilion-glow);
23572357
}
23582358

2359+
/* Phone-tier ledger: the desktop 28/200/1fr/auto grid clips on narrow
2360+
widths (the section uses overflow: hidden for its border-radius).
2361+
Reflow each row to a 2-row template: key + tag inline at top, value
2362+
+ script path on the second row, with the seal spanning both rows. */
2363+
@media (max-width: 720px) {
2364+
.repro-ledger { font-size: 12px; }
2365+
.repro-ledger .row {
2366+
grid-template-columns: 28px 1fr auto;
2367+
grid-template-areas:
2368+
"seal key tag"
2369+
"seal value value";
2370+
gap: 4px 12px;
2371+
padding: 12px 14px;
2372+
align-items: start;
2373+
}
2374+
.repro-row__seal { grid-area: seal; align-self: center; }
2375+
.repro-ledger .row .k { grid-area: key; min-width: 0; }
2376+
.repro-ledger .row .v { grid-area: value; font-size: 13px; min-width: 0; overflow-wrap: anywhere; }
2377+
.repro-ledger .row .tag { grid-area: tag; justify-self: end; }
2378+
.repro-ledger .row.total .v { font-size: 18px; }
2379+
.repro-ledger .repro-script-path { font-size: 10px; overflow-wrap: anywhere; }
2380+
}
2381+
23592382
/* ── Hardware ─────────────────────────────────────────────────── */
23602383
.hw-section {
23612384
padding: clamp(96px, 12vh, 144px) clamp(32px, 6vw, 96px);
@@ -2857,6 +2880,10 @@ footer.foot .meta .made {
28572880
.ra-pane .ra-text { font-size: 13px; line-height: 1.85; }
28582881
.ra-pane.en-pane .ra-text { font-size: 15px; line-height: 1.65; }
28592882
.ra-pane .ra-head { font-size: 8px; gap: 8px; flex-wrap: wrap; }
2883+
.repro-section { padding-left: 18px; padding-right: 18px; }
2884+
.repro-ledger .row { padding: 10px 12px; gap: 4px 10px; }
2885+
.repro-ledger .row .v { font-size: 12px; }
2886+
.repro-ledger .row.total .v { font-size: 16px; }
28602887
}
28612888

28622889
@media print {

0 commit comments

Comments
 (0)