diff --git a/packages/twenty-front/src/modules/ui/utilities/scroll/components/ScrollWrapper.tsx b/packages/twenty-front/src/modules/ui/utilities/scroll/components/ScrollWrapper.tsx index d39ef62d1817..c5140f583a61 100644 --- a/packages/twenty-front/src/modules/ui/utilities/scroll/components/ScrollWrapper.tsx +++ b/packages/twenty-front/src/modules/ui/utilities/scroll/components/ScrollWrapper.tsx @@ -13,13 +13,14 @@ import { overlayScrollbarsState } from '@/ui/utilities/scroll/states/overlayScro import 'overlayscrollbars/overlayscrollbars.css'; -const StyledScrollWrapper = styled.div` +const StyledScrollWrapper = styled.div<{ scrollHide?: boolean }>` display: flex; height: 100%; width: 100%; .os-scrollbar-handle { - background-color: ${({ theme }) => theme.border.color.medium}; + background-color: ${({ theme, scrollHide }) => + scrollHide ? 'transparent' : theme.border.color.medium}; } `; @@ -61,10 +62,7 @@ export const ScrollWrapper = ({ const [initialize, instance] = useOverlayScrollbars({ options: { - scrollbars: { - autoHide: scrollHide ? 'scroll' : 'never', - visibility: scrollHide ? 'hidden' : 'visible', - }, + scrollbars: { autoHide: 'scroll' }, overflow: { x: enableXScroll ? undefined : 'hidden', y: enableYScroll ? undefined : 'hidden', @@ -92,7 +90,11 @@ export const ScrollWrapper = ({ id: contextProviderName, }} > - + {children}