Projector: canvas bitmap no longer feeds the layout (safari grew the ring and crushed the steps), definite grid rows

This commit is contained in:
2026-11-17 02:36:51 +01:00
parent d6e064c864
commit c7ea7e097d
+7 -4
View File
@@ -8,9 +8,10 @@ body.screen {
.s-tools { display: flex; gap: 10px; align-items: center; }
:fullscreen .s-tools button { display: none; }
.s-main { min-height: 0; display: grid; padding: 1vh 4vw; }
/* definite tracks: percentage heights below resolve the same in every engine */
.s-main { min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr); padding: 1vh 4vw; }
.s-enroll { display: grid; grid-template-columns: auto 1fr; gap: 5vw; align-items: center; min-height: 0; }
.s-enroll { display: grid; grid-template-columns: auto 1fr; grid-template-rows: minmax(0, 1fr); gap: 5vw; align-items: center; min-height: 0; height: 100%; }
.qr-wrap {
height: 100%; max-height: 74vh; aspect-ratio: 1; display: grid; grid-template-rows: 1fr auto;
background: #fff; border-radius: 28px; padding: 2vh; gap: 1.4vh;
@@ -18,9 +19,11 @@ body.screen {
.qr-wrap.ring { background: transparent; padding: 0; }
.entry { display: flex; align-items: center; gap: 1.2vw; margin-top: 3vh; background: var(--surface); border-radius: 18px; padding: 1.2vh 1.2vw; width: fit-content; }
.entry canvas { width: clamp(140px, min(21vw, 34vh), 420px); height: auto; aspect-ratio: 1; image-rendering: pixelated; flex: none; }
.entry div { display: grid; gap: .3vh; font-size: clamp(.8rem, 1.1vw, 1.2rem); color: var(--ink-2); min-width: 0; overflow-wrap: anywhere; }
.entry div { display: grid; gap: .3vh; font-size: clamp(.8rem, 1.1vw, 1.2rem); color: var(--ink-2); min-width: 0; overflow-wrap: break-word; }
.entry b { color: var(--ink); font-weight: 700; }
#qr { width: 100%; height: 100%; min-height: 0; image-rendering: pixelated; image-rendering: crisp-edges; object-fit: contain; }
/* the ring loop resizes the canvas bitmap every frame: its intrinsic size must not feed the layout,
or safari widens the column, which grows the bitmap, which widens the column... */
#qr { width: 100%; height: 100%; min-width: 0; min-height: 0; contain: size; image-rendering: pixelated; image-rendering: crisp-edges; object-fit: contain; }
.tick { height: 6px; background: var(--bg); border-radius: 99px; overflow: hidden; margin: 0 1vh; }
#tick-bar { height: 100%; width: 0; background: var(--mark); border-radius: 99px; }
.s-steps h2 { font-size: clamp(2rem, 4.6vw, 5rem); letter-spacing: -.03em; margin-bottom: .5em; }