Skip to content

Commit f3d7805

Browse files
authored
fix: fix horizontal scrolling in navigator (#4813)
## Description Navigator will get horizontal scrollbars when necessary. ## Steps for reproduction 1. click button 2. expect xyz ## Code Review - [ ] hi @kof, I need you to do - conceptual review (architecture, feature-correctness) - detailed review (read every line) - test it on preview ## Before requesting a review - [ ] made a self-review - [ ] added inline comments where things may be not obvious (the "why", not "what") ## Before merging - [ ] tested locally and on preview environment (preview dev login: 0000) - [ ] updated [test cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md) document - [ ] added tests - [ ] if any new env variables are added, added them to `.env` file
1 parent 68a28b4 commit f3d7805

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/design-system/src/components/scroll-area.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,11 @@ const ScrollAreaScrollbar = styled(Scrollbar, {
2626
touchAction: "none",
2727
'&[data-orientation="vertical"]': {
2828
width: theme.spacing[6],
29-
paddingRight: 3,
3029
},
3130
'&[data-orientation="horizontal"]': {
3231
flexDirection: "column",
3332
height: theme.spacing[6],
34-
paddingBottom: 3,
33+
"--radix-scroll-area-thumb-height": theme.spacing[4],
3534
},
3635

3736
variants: {

0 commit comments

Comments
 (0)