Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
fix: prevent navbar tab shift when navigating across pages
imagineer99471fc8fd9099
diff --git a/studio/frontend/src/components/navbar.tsx b/studio/frontend/src/components/navbar.tsxindex 5f1aed832da..4a75223dc4c 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 (<header className="relative top-0 z-40 h-16 w-full">- <div className="mx-auto flex h-full max-w-7xl items-center justify-between px-4 sm:px-6">+ <div className="mx-auto grid h-full max-w-7xl grid-cols-[1fr_auto_1fr] items-center px-4 sm:px-6">{/* Left: logo */}- <Link to="/studio" className="flex items-center select-none">+ <Link to="/studio" className="flex items-center justify-self-start select-none"><imgsrc="/blacklogo.png"alt="Unsloth"@@ -117,23 +117,21 @@ export function Navbar() {/>)}<span className="relative z-10 flex items-center gap-1.5">- <AnimatePresence mode="popLayout">- {active && item.icon && (- <motion.span- key={item.href}- initial={{ width: 0, opacity: 0 }}- animate={{ width: "auto", opacity: 1 }}- exit={{ width: 0, opacity: 0 }}- transition={{ duration: 0.2, ease: [0.165, 0.84, 0.44, 1] }}- className="overflow-hidden"- >- <HugeiconsIcon- icon={item.icon}- className="size-3.5 -mt-px"- />- </motion.span>- )}- </AnimatePresence>+ <span className="inline-flex size-3.5 items-center justify-center overflow-hidden">+ <motion.span+ initial={false}+ animate={{+ opacity: active ? 1 : 0,+ scale: active ? 1 : 0.9,+ }}+ transition={{ duration: 0.2, ease: [0.165, 0.84, 0.44, 1] }}+ >+ <HugeiconsIcon+ icon={item.icon}+ className="size-3.5 -mt-px"+ />+ </motion.span>+ </span>{item.label}</span></Link>@@ -142,7 +140,7 @@ export function Navbar() {</nav>{/* Right: docs/tour desktop */}- <div className="hidden items-center gap-2 md:flex">+ <div className="hidden items-center justify-self-end gap-2 md:flex"><AnimatedThemeTogglerclassName="flex h-9 w-9 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-foreground [&_svg]:size-4"title="Toggle theme"@@ -182,17 +180,20 @@ export function Navbar() {</HoverCardContent></HoverCard>- {tourId ? (- <button- type="button"- onClick={openTour}- className="flex h-9 items-center gap-1.5 rounded-md px-3 text-muted-foreground transition-colors hover:bg-accent hover:text-foreground"- title="Tour"- >- <HugeiconsIcon icon={CursorInfo02Icon} className="size-4" />- <span className="text-sm font-medium">Tour</span>- </button>- ) : null}+ <button+ type="button"+ onClick={tourId ? openTour : undefined}+ className={cn(+ "flex h-9 items-center gap-1.5 rounded-md px-3 text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",+ !tourId && "invisible pointer-events-none",+ )}+ title="Tour"+ aria-hidden={!tourId}+ tabIndex={tourId ? 0 : -1}+ >+ <HugeiconsIcon icon={CursorInfo02Icon} className="size-4" />+ <span className="text-sm font-medium">Tour</span>+ </button></div>{/* Right: mobile */}diff --git a/studio/frontend/src/index.css b/studio/frontend/src/index.cssindex 4ed13bdb570..2ef1ed7d963 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,