Navigation drawer scroll padding fix (#9141)
closes https://github.com/twentyhq/twenty/issues/9026 fixes #9312 https://github.com/user-attachments/assets/3d7df3ec-8a5e-4308-8993-82c715edc683 --------- Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
This commit is contained in:
@ -19,6 +19,9 @@ import styled from '@emotion/styled';
|
||||
const StyledMainSection = styled(NavigationDrawerSection)`
|
||||
min-height: fit-content;
|
||||
`;
|
||||
const StyledInnerContainer = styled.div`
|
||||
height: 100%;
|
||||
`;
|
||||
|
||||
export const MainNavigationDrawerItems = () => {
|
||||
const isMobile = useIsMobile();
|
||||
@ -60,12 +63,14 @@ export const MainNavigationDrawerItems = () => {
|
||||
contextProviderName="navigationDrawer"
|
||||
componentInstanceId={`scroll-wrapper-navigation-drawer`}
|
||||
defaultEnableXScroll={false}
|
||||
scrollHide={true}
|
||||
scrollbarVariant="no-padding"
|
||||
>
|
||||
<NavigationDrawerOpenedSection />
|
||||
<CurrentWorkspaceMemberFavoritesFolders />
|
||||
<WorkspaceFavorites />
|
||||
<RemoteNavigationDrawerSection />
|
||||
<StyledInnerContainer>
|
||||
<NavigationDrawerOpenedSection />
|
||||
<CurrentWorkspaceMemberFavoritesFolders />
|
||||
<WorkspaceFavorites />
|
||||
<RemoteNavigationDrawerSection />
|
||||
</StyledInnerContainer>
|
||||
</ScrollWrapper>
|
||||
</>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user