From 2bf918613565af43c6dab8096139ecf069fd9be1 Mon Sep 17 00:00:00 2001 From: Athou Date: Tue, 9 Jan 2024 16:20:46 +0100 Subject: [PATCH] only show sidebar resizer when sidebar is actually shown --- commafeed-client/src/pages/app/Layout.tsx | 44 ++++++++++++----------- 1 file changed, 23 insertions(+), 21 deletions(-) diff --git a/commafeed-client/src/pages/app/Layout.tsx b/commafeed-client/src/pages/app/Layout.tsx index 5abb359d..5b60ecd9 100644 --- a/commafeed-client/src/pages/app/Layout.tsx +++ b/commafeed-client/src/pages/app/Layout.tsx @@ -157,28 +157,30 @@ export default function Layout(props: LayoutProps) { {props.sidebar} - setSidebarWidth(data.x)} - > - + - + bounds={{ + left: 120, + right: 1000, + }} + grid={[30, 30]} + onDrag={(_e, data) => setSidebarWidth(data.x)} + > + + + }>