From 7d9112bc8cbedca550d04a8295e434126a512294 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Uladzimir=20Dzmitra=C4=8Dko=C5=AD?=
<3773351+going-confetti@users.noreply.github.com>
Date: Fri, 20 Dec 2024 11:55:35 +0100
Subject: [PATCH] fix: Last item scripts list isn't always accessible (#389)
---
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 && (
+
+
+
+ )}
+
+
+
+
+
+
+
+
+
+
+
+ >
+ }
+ />
+
-
-
-
+
- >
- }
- />
-
-
-
-
-
- }
- />
-
-
-
+ }
+ />
+
+
+
+
)
}