From 5aa8ecccadfa9414efdcaa9f118c3cfaab41c8f7 Mon Sep 17 00:00:00 2001 From: Uladzimir Dzmitrachkou Date: Thu, 19 Dec 2024 10:39:27 +0100 Subject: [PATCH] fix: Last item scripts list isn't always accessible --- src/components/Layout/Sidebar/Sidebar.tsx | 129 +++++++++++----------- 1 file changed, 66 insertions(+), 63 deletions(-) diff --git a/src/components/Layout/Sidebar/Sidebar.tsx b/src/components/Layout/Sidebar/Sidebar.tsx index 915c2a79..2babb372 100644 --- a/src/components/Layout/Sidebar/Sidebar.tsx +++ b/src/components/Layout/Sidebar/Sidebar.tsx @@ -28,78 +28,81 @@ export function Sidebar({ isExpanded, onCollapseSidebar }: SidebarProps) { maxWidth="100%" overflow="hidden" position="relative" + asChild > - - - - {isExpanded && ( - + + - - - )} - - - - - + onChange={setSearchTerm} + /> + + {isExpanded && ( + + + + )} + + + + + + + + + + + + + } + /> + - - - + - - } - /> - - - - - - } - /> - - - + } + /> + + + + ) }