From 3b27d56682cfdfe63af090a73c1f3eba68c79610 Mon Sep 17 00:00:00 2001 From: Oliver Date: Sun, 19 Oct 2025 15:39:17 +1100 Subject: [PATCH] [UI] Tweak NavigationDrawer (#10623) - Remove double scrollbar --- .../src/components/nav/NavigationDrawer.tsx | 55 ++++++++----------- 1 file changed, 23 insertions(+), 32 deletions(-) diff --git a/src/frontend/src/components/nav/NavigationDrawer.tsx b/src/frontend/src/components/nav/NavigationDrawer.tsx index 876177fefc..b488af6ab8 100644 --- a/src/frontend/src/components/nav/NavigationDrawer.tsx +++ b/src/frontend/src/components/nav/NavigationDrawer.tsx @@ -1,12 +1,5 @@ import { t } from '@lingui/core/macro'; -import { - Container, - Drawer, - Flex, - Group, - ScrollArea, - Space -} from '@mantine/core'; +import { Container, Drawer, Flex, Group, Space } from '@mantine/core'; import { useViewportSize } from '@mantine/hooks'; import { useEffect, useMemo, useRef, useState } from 'react'; @@ -183,33 +176,31 @@ function DrawerContent({ closeFunc }: Readonly<{ closeFunc?: () => void }>) { - + + + + + {plugins.length > 0 ? ( - - - - {plugins.length > 0 ? ( - - ) : ( - <> - )} - + ) : ( + <> + )}