I’d love to see how we can may “really merge” not overflow off of the page
I’d love to see how we can may “really merge” not overflow off of the page
Cause: .pr-row (app/globals.css) is inline-flex with white-space: nowrap on all three pills, so on a phone "threadide #150 · CI passing · Really merge?" is wider than the 358px content column and the Merge button runs off the right edge once it is armed.
Plan:
- Let
.pr-rowwrap (flex-wrap: wrap) so the pills fall onto a second line instead of overflowing. - Give the Merge button a stable width: render "Merge", "Really merge?" and "Merging…" stacked in one grid cell with the inactive ones
visibility: hidden, so arming never resizes the button and the second tap lands where the first one did. Without this, the button would jump to the next line at the exact moment you tap it. - Mockup screenshots at 390px (armed and idle) to confirm.
threadide@1b8bfeaFixed on thread/c7e46f5b (1b8bfea), screenshot attached.
What was wrong: .pr-row in app/globals.css was inline-flex with no wrapping and every pill white-space: nowrap, so on a 390px phone "threadide #150 · CI passing · Really merge?" was wider than the column and the armed button ran off the page.
What changed:
.pr-rownow wraps (flex-wrap: wrap; max-width: 100%), so the Merge button drops to its own line on a phone instead of overflowing.- The Merge button keeps ONE width in all three states. New
MergeLabelin components/merge-prs.tsx stacks "Merge" / "Really merge?" / "Merging…" (each with the pot glyph) in a single grid cell, with the inactive onesvisibility: hidden+aria-hidden. Without this, wrapping alone would have made the button grow and jump to the next line at the moment you tap it, so the confirming second tap would miss. The cost is that idle "Merge" sits in a pill as wide as "Really merge?", which reads fine (see the 760px check).
Verified with static mockups on the real globals.css at 390px (dark and light) and 760px; tsc passes. The app can't run in the sandbox, so I didn't exercise the live page.
Saved a memory note (conventions/merge-button-stable-width) so the stacked-label trick gets reused for other two-tap buttons whose label changes (Stop's "Really stop?" could use it next if it ever ends up in a tight row).
Merged threadide #152 by @osebo (merge, c7ccfbf).

