diff options
| author | Adam Soltys <[email protected]> | 2026-09-03 21:39:04 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-09-03 21:39:04 -0700 |
| commit | 6bfe57611b792ff3162de2e9e1a4e97240af8133 (patch) | |
| tree | c0f311213b5ea80bdf849474aa06b7e4649fbab2 /src/style.css | |
| parent | ebdb209ff4480ce88ee764c36b28b1b7d5890eed (diff) | |
| download | coinosv3-6bfe57611b792ff3162de2e9e1a4e97240af8133.tar.gz coinosv3-6bfe57611b792ff3162de2e9e1a4e97240af8133.zip | |
Two carousel polish fixes. The 'slight move after history loads' was the vertical scrollbar: a short page has none, the history list filling in makes the page tall enough to get one, the viewport narrows ~15px, and the snapped card re-centers into the narrower width — a horizontal nudge right as history lands. scrollbar-gutter:stable reserves the gutter so growing content never changes the width. And the 'false start' — a boot render's alignment firing a scrollTo mid-drag — is guarded: alignment now bails while a finger/mouse is down
Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MrkLsNScXe9b6BviUSdmMr
Diffstat (limited to 'src/style.css')
| -rw-r--r-- | src/style.css | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/style.css b/src/style.css index e846f52..ea9618e 100644 --- a/src/style.css +++ b/src/style.css @@ -64,6 +64,15 @@ * { box-sizing: border-box; } +html { + /* Reserve the scrollbar's gutter always, so it doesn't appear the instant + the history list fills the page and shrink the viewport — that width + change re-centered the balance carousel's snapped card, the "slight move + one last time" after a switch. Stable gutter = no reflow when content + grows. */ + scrollbar-gutter: stable; +} + html, body { margin: 0; padding: 0; |
