mirror of
https://github.com/lingble/twenty.git
synced 2025-11-01 13:17:57 +00:00
Fixed expandable list and navigation menu (#8336)
For release 0.32 - Fixed expandable list dropdown UI bugs - Added ScrollWrapper on navigation menus
This commit is contained in:
@@ -14,6 +14,11 @@ import { navigationDrawerExpandedMemorizedState } from '@/ui/navigation/states/n
|
||||
import { navigationMemorizedUrlState } from '@/ui/navigation/states/navigationMemorizedUrlState';
|
||||
import { useIsMobile } from '@/ui/utilities/responsive/hooks/useIsMobile';
|
||||
import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled';
|
||||
import styled from '@emotion/styled';
|
||||
|
||||
const StyledMainSection = styled(NavigationDrawerSection)`
|
||||
min-height: fit-content;
|
||||
`;
|
||||
|
||||
export const MainNavigationDrawerItems = () => {
|
||||
const isMobile = useIsMobile();
|
||||
@@ -34,7 +39,7 @@ export const MainNavigationDrawerItems = () => {
|
||||
return (
|
||||
<>
|
||||
{!isMobile && (
|
||||
<NavigationDrawerSection>
|
||||
<StyledMainSection>
|
||||
<NavigationDrawerItem
|
||||
label="Search"
|
||||
Icon={IconSearch}
|
||||
@@ -51,7 +56,7 @@ export const MainNavigationDrawerItems = () => {
|
||||
}}
|
||||
Icon={IconSettings}
|
||||
/>
|
||||
</NavigationDrawerSection>
|
||||
</StyledMainSection>
|
||||
)}
|
||||
|
||||
{isWorkspaceFavoriteEnabled && <NavigationDrawerOpenedSection />}
|
||||
|
||||
Reference in New Issue
Block a user