From ca899b2ac7a3876ae682d0207adc789c24a00c2d Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com> Date: Thu, 16 Nov 2023 14:11:33 +0530 Subject: [PATCH] style: workspace sidebar dropdown improvement (#2783) --- web/components/workspace/sidebar-dropdown.tsx | 46 ++++++++++--------- 1 file changed, 25 insertions(+), 21 deletions(-) diff --git a/web/components/workspace/sidebar-dropdown.tsx b/web/components/workspace/sidebar-dropdown.tsx index dfa45d9bf..58879e968 100644 --- a/web/components/workspace/sidebar-dropdown.tsx +++ b/web/components/workspace/sidebar-dropdown.tsx @@ -90,36 +90,40 @@ export const WorkspaceSidebarDropdown = observer(() => { }; return ( -
+
{({ open }) => ( <>
-
- {activeWorkspace?.logo && activeWorkspace.logo !== "" ? ( - Workspace Logo - ) : ( - activeWorkspace?.name?.charAt(0) ?? "..." +
+
+ {activeWorkspace?.logo && activeWorkspace.logo !== "" ? ( + Workspace Logo + ) : ( + activeWorkspace?.name?.charAt(0) ?? "..." + )} +
+ + {!sidebarCollapsed && ( +

+ {activeWorkspace?.name ? activeWorkspace.name : "Loading..."} +

)}
- {!sidebarCollapsed && ( -

- {activeWorkspace?.name ? activeWorkspace.name : "Loading..."} -

- )} - {!sidebarCollapsed && (