Merge pull request #207 from multica-ai/fix/onboarding-header-centering

fix(desktop): center onboarding step indicator
This commit is contained in:
Naiyuan Qing 2026-02-15 22:10:50 +08:00 committed by GitHub
commit fa040404d2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -45,30 +45,24 @@ export default function OnboardingPage() {
return (
<div className="h-dvh flex flex-col bg-background">
<header
className="shrink-0 h-12 flex items-center pr-4"
className="relative shrink-0 h-12 flex items-center justify-between px-4"
style={{ WebkitAppRegion: "drag" } as React.CSSProperties}
>
{/* Left: Traffic light spacing */}
<div className="w-20 h-full shrink-0" />
{/* Brand */}
<div className="flex items-center gap-2 shrink-0">
{/* Left: Brand */}
<div className="flex items-center gap-2 pl-16">
<MulticaIcon bordered noSpin />
<span className="text-sm tracking-wide font-brand">Multica</span>
</div>
{/* Center: Step indicator */}
<div className="flex-1 flex justify-center">
{/* Center: Step indicator (absolute for true centering) */}
<div className="absolute inset-0 flex items-center justify-center pointer-events-none">
<span className="text-sm text-muted-foreground">
{stepLabel} ({currentStep}/{totalSteps})
</span>
</div>
{/* Right: Theme toggle */}
<div
className="shrink-0"
style={{ WebkitAppRegion: "no-drag" } as React.CSSProperties}
>
<div style={{ WebkitAppRegion: "no-drag" } as React.CSSProperties}>
<ModeToggle />
</div>
</header>