wrolpi/app/src/components/ui
Roland c581dadae6 ui: an icon button is the same height as the button beside it
The Details/Open pair on every archive card came out 36px beside 28px.

Mantine gives ActionIcon a size scale unrelated to Button's, and defaults
the two differently:

    size        xs    sm    md    lg    xl   default
    Button      30    36    42    50    60   sm (36)
    ActionIcon  18    22    28    34    44   md (28)

So the two never matched, at any size, and every toolbar mixing them was
ragged -- the archive card is just where it shows most.

Mantine already ships the aligned scale as `--ai-size-input-*`, for an
ActionIcon standing beside an Input; those five values are identical to
`--button-height-*`.  ui.css points one at the other, which fixes every
size at once including ones no call site uses yet, and IconButton now
defaults to `sm` like Button.

Both halves are needed and both are proven so: dropping just the `sm`
remap reddens the default and `sm` cases while xs/md/lg/xl stay green;
reverting just the default reddens the default case alone, at 42 vs 36 --
the mismatch inverted rather than fixed.

A further test pins the direction.  The pair could also be squared up by
cutting the labelled button down to 28px, which would be the wrong fix.

Gallery gains a row of Button/IconButton pairs at all five sizes.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-02 11:52:59 -06:00
..
Button.tsx ui: an icon button is the same height as the button beside it 2026-08-02 11:52:59 -06:00
DataTable.tsx ui: give tables a real header, drop the column grid, quiet the row rules 2026-08-01 17:10:03 -06:00
Feedback.tsx ui: semantic roles, so night and amber can tell severity apart at all 2026-08-01 17:54:22 -06:00
Icon.tsx ui: map the twelve icon names that were rendering as question marks 2026-08-01 16:30:20 -06:00
index.ts ui: nine leaf files off Semantic, and the components they needed 2026-07-30 11:55:39 -06:00
Inputs.tsx ui: name the directory fields, announce their help text, let long prefixes shrink 2026-07-30 16:10:56 -06:00
Navigation.tsx ui: nine leaf files off Semantic, and the components they needed 2026-07-30 11:55:39 -06:00
Overlays.tsx ui: migrate the extension pages and Configs; five components they needed 2026-07-30 09:15:04 -06:00
SearchBox.tsx ui: fix the cypress failures, and two real defects behind them 2026-07-30 12:54:24 -06:00
Surfaces.tsx ui: cards get legible titles, contained posters, and meta beside the title 2026-08-02 11:52:59 -06:00
ThemePicker.tsx ui: media filtering is a per-theme setting, not a night-mode hardcode 2026-07-30 09:15:04 -06:00
toast.test.js ui: semantic roles, so night and amber can tell severity apart at all 2026-08-01 17:54:22 -06:00
toast.ts ui: semantic roles, so night and amber can tell severity apart at all 2026-08-01 17:54:22 -06:00
ui-layout.cy.js ui: an icon button is the same height as the button beside it 2026-08-02 11:52:59 -06:00
ui.css ui: an icon button is the same height as the button beside it 2026-08-02 11:52:59 -06:00
ui.test.js ui: cards get legible titles, contained posters, and meta beside the title 2026-08-02 11:52:59 -06:00