From 21e58ca644ff6468298f351e0b4e9983484b55d8 Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Sun, 29 Oct 2023 17:19:03 -0700 Subject: [PATCH] Fix sidebar scroll --- src-web/components/Sidebar.tsx | 37 +++++++++++++++++----------------- 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/src-web/components/Sidebar.tsx b/src-web/components/Sidebar.tsx index 92f9f52e..5c715047 100644 --- a/src-web/components/Sidebar.tsx +++ b/src-web/components/Sidebar.tsx @@ -153,8 +153,9 @@ export const Sidebar = memo(function Sidebar({ className }: Props) { ); return ( -
-
+ - - - -
+ +
); }); @@ -193,7 +188,13 @@ interface SidebarItemsProps { onClearSelected: () => void; } -function SidebarItems({ requests, focused, selectedIndex, onSelect, onClearSelected }: SidebarItemsProps) { +function SidebarItems({ + requests, + focused, + selectedIndex, + onSelect, + onClearSelected, +}: SidebarItemsProps) { const [hoveredIndex, setHoveredIndex] = useState(null); const updateRequest = useUpdateAnyRequest();