diff options
| author | David Hill <[email protected]> | 2026-03-02 15:26:55 +0000 |
|---|---|---|
| committer | David Hill <[email protected]> | 2026-03-02 15:26:55 +0000 |
| commit | 4c2aa4ab9071b5fa74e1215aa7595b28546ca575 (patch) | |
| tree | 6f936b9bd11a0f08bb32d2486e095d0d3ca5dbe3 | |
| parent | 51e6000194c9bf4859aef204406cca80dbd83e40 (diff) | |
| download | opencode-4c2aa4ab9071b5fa74e1215aa7595b28546ca575.tar.gz opencode-4c2aa4ab9071b5fa74e1215aa7595b28546ca575.zip | |
ui: widen scroll thumb hit area
Make the thumb overlay 12px wide while keeping the visible bar 6px centered for easier hover/drag.
| -rw-r--r-- | packages/ui/src/components/scroll-view.css | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/ui/src/components/scroll-view.css b/packages/ui/src/components/scroll-view.css index f81ae2976..91458fca5 100644 --- a/packages/ui/src/components/scroll-view.css +++ b/packages/ui/src/components/scroll-view.css @@ -17,9 +17,9 @@ .scroll-view__thumb { position: absolute; - right: 0; + right: 1px; top: 0; - width: 16px; + width: 12px; transition: opacity 200ms ease; cursor: default; user-select: none; @@ -29,7 +29,8 @@ .scroll-view__thumb::after { content: ""; position: absolute; - right: 4px; + left: 50%; + transform: translateX(-50%); top: 0; bottom: 0; width: 6px; |
