Repository navigation
Description
Context
DispositionBar (packages/ui-kit/src/decisions/DispositionBar.tsx:43-50) lays out the commit as flex: 1 1 160px and Later and Dismiss as flex: 0 0 auto with minWidth: 96, in one wrapping row with an 8px gap. Together that needs 160 + 96 + 96 + 16 = 368px. The default story stage, and the phone column it stands for, is 360px wide (stories/_stage.tsx:26).
So at every phone width Dismiss wraps onto a row of its own, left-aligned under the commit, and the long "Apply: journeys/ogygia.md" label of Choose breaks over two lines. That shows in Decisions/DispositionBar → Approve, Choose and Wrap320, and in every HygieneCard, which mounts the bar. The doc comment says the row wraps "at 320px rather than shrinking a control below its floor". In practice it wraps at every phone width, and it wraps into an orphan.
Scope
Lay the bar out so that when it cannot fit on one line:
- the commit takes the full first row, and
- Later and Dismiss share the second row, each at least 96 × 44.
On a wide container, keep the single row: the commit takes the remaining width and Later and Dismiss stay content-sized. Absent controls and the busy and disabled states keep their current behaviour.
Out of scope
- Changing labels, tones, busy or disabled semantics, or the 96 × 44 floor.
HygieneCard's other content (ui-kit: HygieneBlocker, HygieneEnd and the HygieneCard story render actions and fix options unstyled #3751).
Acceptance criteria
- At 360px and 320px, Later and Dismiss sit on the same row, with equal widths of at least 96 × 44, and nothing overflows (
overflowing()returns[]). - At 600px or wider, all three controls sit on one row. The commit is wider than Later and Dismiss.
- Story play functions assert both layouts. They fail on
main's layout (Dismiss alone on its row). - Moved visual baselines are regenerated and reviewed.
Verification
Storybook Vitest project, visual baselines, and screenshots before and after in the PR.
Contract impact
None. Visual layout only.
Activity
schlessera commentedon Nov 8, 2026
Claimed (claim-180872) together with #3750, #3751 and #3752, on branch
fix/3752-storybook-component-styles. One PR, because all three move the samehygiene-reviewvisual baselines. No open PR references these issues.fix(ui-kit): TextButton draws its own type, DispositionBar pairs Late…
schlessera commentedon Nov 9, 2026
Delivered in #3756 (squash
b16352f). The squash treebfd314dequals the candidate checkout tree from confirmation run 42553679791. Failing-first and mutation receipts and the regenerated baselines are listed in the PR.