Skip to content

ui-kit: DispositionBar strands Dismiss on its own row at every phone width #3750

Closed

Description

@schlessera

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

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

  1. added this to the 0.45.0 milestone on Nov 8, 2026
  2. added
    type: fix
    area: ui-kit
    priority: p2
    agent-ready
    on Nov 8, 2026
  3. self-assigned this
    on Nov 8, 2026
  4. schlessera commented on Nov 8, 2026

    @schlessera
    OwnerAuthor

    Claimed (claim-180872) together with #3750, #3751 and #3752, on branch fix/3752-storybook-component-styles. One PR, because all three move the same hygiene-review visual baselines. No open PR references these issues.

  5. schlessera commented on Nov 9, 2026

    @schlessera
    OwnerAuthor

    Delivered in #3756 (squash b16352f). The squash tree bfd314d equals the candidate checkout tree from confirmation run 42553679791. Failing-first and mutation receipts and the regenerated baselines are listed in the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

agent-readyarea: ui-kitpriority: p2type: fix

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions