Skip to content

fix(ui): switch as tall as the pills, donut and bars drawn as icons - #437

Merged
daggerok merged 1 commit into
mainfrom
fix/view-switch-size
Dec 3, 2026
Merged

daggerok merged 1 commit into
mainfrom
fix/view-switch-size

Conversation

@daggerok

@daggerok daggerok commented Dec 3, 2026

Copy link
Copy Markdown
Owner

What

  • The two-way switch (% $ on Movers and Dividends, donut or bars on the allocation cards) is 24 px, as tall as a row of Pills, with the same padding: the track p-0.5, each choice py-0.5 on the text-xs line (was a fixed 26 px)
  • The donut and bars choices are drawn as line icons (PieIcon, BarsIcon in ui/icons.tsx) as tall as the letters; the ◔ of the font was about half their height
  • ToggleOption.text takes any node

Why

Owner: the ◔ ☰ switch should have the same font size and height as the pills (Accounts sort row)

Checks

  • Measured in Chrome on localhost:1237 with made-up data: every switch and every pill row 24 px, thumb and chosen pill 20 px
  • New Toggle.test.tsx
  • bun test 548 pass, tc/check.sh prints nothing, git diff --check clean

@daggerok
daggerok merged commit 224d663 into main Dec 3, 2026
1 check passed
@daggerok
daggerok deleted the fix/view-switch-size branch December 3, 2026 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant