Skip to content

Commit

Permalink
fix(mobile): hide scrollbar (#9144)
Browse files Browse the repository at this point in the history
  • Loading branch information
pengx17 committed Dec 16, 2024
1 parent a84a40e commit 7b173a6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions packages/frontend/component/src/ui/scrollbar/index.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ export const scrollbar = style({
},
},
});

export const mobileScrollbar = style({
display: 'none',
});

export const TableScrollbar = style({
marginTop: '60px',
height: 'calc(100% - 120px)',
Expand Down
5 changes: 4 additions & 1 deletion packages/frontend/component/src/ui/scrollbar/scrollable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ export const ScrollableScrollbar = forwardRef<
orientation="vertical"
{...props}
ref={ref}
className={clsx(className, styles.scrollbar)}
className={clsx(
className,
BUILD_CONFIG.isMobileEdition ? styles.mobileScrollbar : styles.scrollbar
)}
>
<ScrollArea.Thumb className={styles.scrollbarThumb} />
{children}
Expand Down

0 comments on commit 7b173a6

Please sign in to comment.