Skip to content

Commit 4c2aa4a

Browse files
committed
ui: widen scroll thumb hit area
Make the thumb overlay 12px wide while keeping the visible bar 6px centered for easier hover/drag.
1 parent 51e6000 commit 4c2aa4a

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

packages/ui/src/components/scroll-view.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717

1818
.scroll-view__thumb {
1919
position: absolute;
20-
right: 0;
20+
right: 1px;
2121
top: 0;
22-
width: 16px;
22+
width: 12px;
2323
transition: opacity 200ms ease;
2424
cursor: default;
2525
user-select: none;
@@ -29,7 +29,8 @@
2929
.scroll-view__thumb::after {
3030
content: "";
3131
position: absolute;
32-
right: 4px;
32+
left: 50%;
33+
transform: translateX(-50%);
3334
top: 0;
3435
bottom: 0;
3536
width: 6px;

0 commit comments

Comments
 (0)