From 8792092dc59aab7c7616611dc27f9aff3d9f8d0c Mon Sep 17 00:00:00 2001 From: ameer2468 <33054370+ameer2468@users.noreply.github.com> Date: Tue, 16 Sep 2025 20:31:12 +0300 Subject: [PATCH 1/5] fix dashboard logo on collapse --- apps/web/app/(org)/dashboard/_components/MobileTab.tsx | 2 +- apps/web/app/(org)/dashboard/_components/Navbar/Desktop.tsx | 1 + packages/ui/src/components/icons/Logo.tsx | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/web/app/(org)/dashboard/_components/MobileTab.tsx b/apps/web/app/(org)/dashboard/_components/MobileTab.tsx index 810c5ce4d0a..b4cd3290165 100644 --- a/apps/web/app/(org)/dashboard/_components/MobileTab.tsx +++ b/apps/web/app/(org)/dashboard/_components/MobileTab.tsx @@ -92,7 +92,7 @@ const Orgs = ({ name={activeOrg?.organization.name ?? "No organization found"} /> )} -

+

{activeOrg?.organization.name}

{ diff --git a/packages/ui/src/components/icons/Logo.tsx b/packages/ui/src/components/icons/Logo.tsx index 1471ab905dc..2235462ba79 100644 --- a/packages/ui/src/components/icons/Logo.tsx +++ b/packages/ui/src/components/icons/Logo.tsx @@ -4,7 +4,7 @@ export const Logo = ({ showBeta, white, hideLogoName, - viewBoxDimensions, + viewBoxDimensions = "0 0 120 40", style, }: { className?: string; @@ -18,7 +18,7 @@ export const Logo = ({ return (
Date: Tue, 16 Sep 2025 21:06:13 +0300 Subject: [PATCH 2/5] Update Desktop.tsx --- .../app/(org)/dashboard/_components/Navbar/Desktop.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/apps/web/app/(org)/dashboard/_components/Navbar/Desktop.tsx b/apps/web/app/(org)/dashboard/_components/Navbar/Desktop.tsx index 53984dfa6c5..912f4ead712 100644 --- a/apps/web/app/(org)/dashboard/_components/Navbar/Desktop.tsx +++ b/apps/web/app/(org)/dashboard/_components/Navbar/Desktop.tsx @@ -36,9 +36,7 @@ export const DesktopNav = () => { return ( { bounce: 0.25, }, }} - className={clsx("hidden z-50 h-full lg:flex group", "relative")} + className={clsx( + "hidden z-50 h-full will-change-[width] lg:flex group", + "relative", + )} >
From 84f38230f21a858d14d5acb0091b59f8096d8b02 Mon Sep 17 00:00:00 2001 From: ameer2468 <33054370+ameer2468@users.noreply.github.com> Date: Tue, 16 Sep 2025 23:13:55 +0300 Subject: [PATCH 3/5] ok --- .../(org)/dashboard/_components/DashboardInner.tsx | 6 ++---- .../(org)/dashboard/_components/Navbar/Desktop.tsx | 13 +++---------- apps/web/app/(org)/dashboard/layout.tsx | 2 +- apps/web/app/globals.css | 8 ++++++++ 4 files changed, 14 insertions(+), 15 deletions(-) diff --git a/apps/web/app/(org)/dashboard/_components/DashboardInner.tsx b/apps/web/app/(org)/dashboard/_components/DashboardInner.tsx index eff12c36216..f2c2ff9cdc3 100644 --- a/apps/web/app/(org)/dashboard/_components/DashboardInner.tsx +++ b/apps/web/app/(org)/dashboard/_components/DashboardInner.tsx @@ -171,12 +171,10 @@ export default function DashboardInner({ {/*End of NavBar*/}
-
- {children} -
+
{children}
{isSharedCapsPage && activeOrganization?.members && ( { toggleSidebarCollapsed(); } }; - window.addEventListener("keydown", handleKeyDown); - - return () => { - window.removeEventListener("keydown", handleKeyDown); - }; + return () => window.removeEventListener("keydown", handleKeyDown); }, [toggleSidebarCollapsed]); return ( { }, }} className={clsx( - "hidden z-50 h-full will-change-[width] lg:flex group", - "relative", + "hidden relative z-50 h-full will-change-[width] lg:flex group bg-gray-1", )} >
@@ -60,13 +55,11 @@ export const DesktopNav = () => { />
-
-
-