Skip to content

Commit

Permalink
fix: fix horizontal scrolling in navigator (#4813)
Browse files Browse the repository at this point in the history
## 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
  • Loading branch information
kof authored Feb 1, 2025
1 parent 68a28b4 commit f3d7805
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/design-system/src/components/scroll-area.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,11 @@ const ScrollAreaScrollbar = styled(Scrollbar, {
touchAction: "none",
'&[data-orientation="vertical"]': {
width: theme.spacing[6],
paddingRight: 3,
},
'&[data-orientation="horizontal"]': {
flexDirection: "column",
height: theme.spacing[6],
paddingBottom: 3,
"--radix-scroll-area-thumb-height": theme.spacing[4],
},

variants: {
Expand Down

0 comments on commit f3d7805

Please sign in to comment.