From 44bc1993854b4bdd6674477e86820abdf71abadc Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com> Date: Wed, 29 Nov 2023 13:32:35 +0530 Subject: [PATCH] style: workspace sidebar scroll fix and improvement (#2934) --- web/components/workspace/sidebar-dropdown.tsx | 32 +++++++++++-------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/web/components/workspace/sidebar-dropdown.tsx b/web/components/workspace/sidebar-dropdown.tsx index 69fe387c1..324d9acea 100644 --- a/web/components/workspace/sidebar-dropdown.tsx +++ b/web/components/workspace/sidebar-dropdown.tsx @@ -145,8 +145,10 @@ export const WorkspaceSidebarDropdown = observer(() => { leaveTo="transform opacity-0 scale-95" > -
- Workspace +
+ + Workspace + {workspaces ? (
{workspaces.length > 0 ? ( @@ -195,18 +197,20 @@ export const WorkspaceSidebarDropdown = observer(() => { ) : (

No workspace found!

)} - { - setTrackElement("APP_SIEDEBAR_WORKSPACE_DROPDOWN"); - router.push("/create-workspace"); - }} - className="flex w-full items-center gap-2 px-2 py-1 text-sm text-custom-sidebar-text-200 hover:bg-custom-sidebar-background-80" - > - - Create Workspace - +
+ { + setTrackElement("APP_SIEDEBAR_WORKSPACE_DROPDOWN"); + router.push("/create-workspace"); + }} + className="flex w-full items-center gap-2 px-2 py-1 text-sm text-custom-sidebar-text-200 hover:bg-custom-sidebar-background-80" + > + + Create Workspace + +
) : (