From cdb0fdbf76d51e332279648d13693cbee563b42d Mon Sep 17 00:00:00 2001 From: Alois Date: Tue, 7 Apr 2026 00:16:24 +0200 Subject: [PATCH] Fixed navbar & removed enter animation --- apps/web/src/components/navbar.tsx | 150 +++++++++++++++-------------- apps/web/src/routes/app/layout.tsx | 23 +---- 2 files changed, 79 insertions(+), 94 deletions(-) diff --git a/apps/web/src/components/navbar.tsx b/apps/web/src/components/navbar.tsx index 7b95efa..da54a40 100644 --- a/apps/web/src/components/navbar.tsx +++ b/apps/web/src/components/navbar.tsx @@ -34,84 +34,88 @@ export default function Navbar({ forMobile }: { forMobile: boolean }) { data-tauri-drag-region className={`${forMobile && "border-b"} w-full gap-2 h-13.5 flex items-center justify-between`} > - {forMobile ? ( - - - - ) : ( - - )} - {pathname === "/chat" && ( - ( -

{user?.display}

- )} - loading={} - /> - )} +
+ {forMobile ? ( + + + + ) : ( + + )} + {pathname === "/chat" && ( + ( +

{user?.display}

+ )} + loading={} + /> + )} +
{/* Empty space */} - {pathname === "/chat" && id && ( - <> - {currentCalls.length === 0 ? ( - - ) : currentCalls.length === 1 ? ( - - ) : ( - <> +
+ {pathname === "/chat" && id && ( + <> + {currentCalls.length === 0 ? ( - - - )} - - )} - + ) : currentCalls.length === 1 ? ( + + ) : ( + <> + + + + )} + + )} + +
); } diff --git a/apps/web/src/routes/app/layout.tsx b/apps/web/src/routes/app/layout.tsx index 9f2d140..fad88d8 100644 --- a/apps/web/src/routes/app/layout.tsx +++ b/apps/web/src/routes/app/layout.tsx @@ -6,7 +6,6 @@ import Navbar, { MobileNavbar } from "@/components/navbar"; import { SidebarProvider } from "@tensamin/ui/cmp/sidebar"; import { useIsMobile, cn } from "@tensamin/ui/utils"; -import { motion } from "framer-motion"; import { isTauri } from "@tauri-apps/api/core"; import { useLocation } from "@tanstack/react-router"; @@ -20,20 +19,7 @@ export default function Layout(props: { children: ReactNode }) { const location = useLocation(); return ( - +
}
- +
); } - -const animationTiming = { - first: 0.18, - second: 0.1, -};