Commit a8acc79
fix(stake): style the stake dialog's scrollbar (#254)
The dialog is taller than the viewport, so it scrolls. Unstyled, it drew the
platform default — on macOS with "always show scrollbars" that is a wide
light-grey track running down the inside of a rounded dark panel, reading as a
browser artifact stuck onto the design rather than part of it.
Same recipe BountyCardFan already uses (thin, rounded WebKit thumb, transparent
track) with one change: its thumb is `bg-white/15`, and this surface is
`bg-background`, which follows the theme — a fixed white thumb would vanish on
a light page. `foreground/20` inverts with it, `/30` on hover.
Measured on the open dialog, classes on vs off: the reserved gutter drops from
19px to 15px and `::-webkit-scrollbar` width from `auto` to 6px. Worth knowing
that 6px is not the whole story — the gutter implies the engine still reserves
more than the declared width, so this makes the bar quiet rather than exactly
6px wide.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 5ee4273 commit a8acc79
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
117 | 127 | | |
118 | 128 | | |
119 | 129 | | |
| |||
0 commit comments