From e982398c2c7473dfbf69e8724bcf20a6314463f5 Mon Sep 17 00:00:00 2001 From: sabaimran Date: Sun, 19 Jan 2025 18:16:43 -0800 Subject: [PATCH] Weird spacing issue resolve (it was because of the footer in the collapsed state still having some width) --- .../components/chatSidebar/chatSidebar.tsx | 112 +++++++++--------- 1 file changed, 58 insertions(+), 54 deletions(-) diff --git a/src/interface/web/app/components/chatSidebar/chatSidebar.tsx b/src/interface/web/app/components/chatSidebar/chatSidebar.tsx index c5f7b131..4a399c42 100644 --- a/src/interface/web/app/components/chatSidebar/chatSidebar.tsx +++ b/src/interface/web/app/components/chatSidebar/chatSidebar.tsx @@ -192,7 +192,7 @@ function ChatSidebarInternal({ ...props }: ChatSideBarProps) { className={`ml-auto opacity-30 rounded-lg p-2 transition-all transform duration-300 ease-in-out ${props.isOpen ? "translate-x-0 opacity-100 w-[300px] relative" - : "translate-x-full opacity-0 w-0 p-0 m-0"} + : "translate-x-full opacity-100 w-0 p-0 m-0"} `} variant="floating"> @@ -356,60 +356,64 @@ function ChatSidebarInternal({ ...props }: ChatSideBarProps) { - - + { + props.isOpen && ( + + - { - (agentData && !isEditable && agentData.is_creator) ? ( - - - - - - ) : - <> - - - - - - - - - - - - } - - + { + (agentData && !isEditable && agentData.is_creator) ? ( + + + + + + ) : + <> + + + + + + + + + + + + } + + + ) + } ) }