From 471fc8fd90998baa8a8c7ce911800fd21f819eb5 Mon Sep 17 00:00:00 2001 From: imagineer99 Date: Sun, 1 Mar 2026 03:02:49 +0000 Subject: [PATCH] fix: prevent navbar tab shift when navigating across pages --- studio/frontend/src/components/navbar.tsx | 65 ++++++++++++----------- studio/frontend/src/index.css | 1 + 2 files changed, 34 insertions(+), 32 deletions(-) diff --git a/studio/frontend/src/components/navbar.tsx b/studio/frontend/src/components/navbar.tsx index 5f1aed832d..4a75223dc4 100644 --- a/studio/frontend/src/components/navbar.tsx +++ b/studio/frontend/src/components/navbar.tsx @@ -24,7 +24,7 @@ import { import { HugeiconsIcon } from "@hugeicons/react"; import { useTrainingRuntimeStore } from "@/features/training"; import { Link, useRouterState } from "@tanstack/react-router"; -import { AnimatePresence, motion } from "motion/react"; +import { motion } from "motion/react"; import { useState } from "react"; import { TOUR_OPEN_EVENT } from "@/features/tour"; @@ -58,9 +58,9 @@ export function Navbar() { return (
-
+
{/* Left: logo */} - + Unsloth )} - - {active && item.icon && ( - - - - )} - + + + + + {item.label} @@ -142,7 +140,7 @@ export function Navbar() { {/* Right: docs/tour desktop */} -
+
- {tourId ? ( - - ) : null} +
{/* Right: mobile */} diff --git a/studio/frontend/src/index.css b/studio/frontend/src/index.css index 4ed13bdb57..2ef1ed7d96 100644 --- a/studio/frontend/src/index.css +++ b/studio/frontend/src/index.css @@ -268,6 +268,7 @@ } html { @apply font-sans; + scrollbar-gutter: stable; } h1, h2,