From 70d8e5f105de77f57610d58ab78679dd13434d94 Mon Sep 17 00:00:00 2001 From: n4ze3m Date: Thu, 19 Sep 2024 18:45:58 +0530 Subject: [PATCH] Fix: Remove unnecessary padding in `BotLayout` Allows for a consistent layout across different pages within the bot view by removing the default padding in `BotLayout`. This enables a more unified look and feel while providing flexibility to control the padding as needed for specific scenarios. --- app/ui/src/App.tsx | 4 +- app/ui/src/Layout/BotLayout.tsx | 90 ++++++++++++++++----------------- 2 files changed, 47 insertions(+), 47 deletions(-) diff --git a/app/ui/src/App.tsx b/app/ui/src/App.tsx index f8eed14..d1b39c4 100644 --- a/app/ui/src/App.tsx +++ b/app/ui/src/App.tsx @@ -54,7 +54,7 @@ const router = createHashRouter([ { path: "/bot/:id", element: ( - + ), @@ -70,7 +70,7 @@ const router = createHashRouter([ { path: "/bot/:id/playground/:history_id", element: ( - + ), diff --git a/app/ui/src/Layout/BotLayout.tsx b/app/ui/src/Layout/BotLayout.tsx index 11e3259..a8dbbc9 100644 --- a/app/ui/src/Layout/BotLayout.tsx +++ b/app/ui/src/Layout/BotLayout.tsx @@ -62,9 +62,11 @@ function classNames(...classes) { export default function BotLayout({ children, + asideSpace = "md:ml-16", }: { children: React.ReactNode; noPadding?: boolean; + asideSpace?: string; }) { const [sidebarOpen, setSidebarOpen] = useState(false); const params = useParams<{ id: string }>(); @@ -190,7 +192,7 @@ export default function BotLayout({
-
+
-
- {children} - {/*
-
-
*/} -
-
- -
-
-
- -
+ +
+ +
{children}