From 1e5174582b842f6d24fa72019b2bba7203161fbd Mon Sep 17 00:00:00 2001 From: Naiyuan Qing <145280634+NevilleQingNY@users.noreply.github.com> Date: Sun, 15 Feb 2026 22:05:03 +0800 Subject: [PATCH] fix(desktop): center onboarding step indicator using absolute positioning Use absolute positioning for the step indicator to achieve true centering regardless of left/right element widths. This is the standard approach for header layouts where the center element must be centered relative to the entire container width, not the remaining flex space. Co-Authored-By: Claude Opus 4.5 --- .../renderer/src/pages/onboarding/index.tsx | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/apps/desktop/src/renderer/src/pages/onboarding/index.tsx b/apps/desktop/src/renderer/src/pages/onboarding/index.tsx index 5879dc21..1feb1dbe 100644 --- a/apps/desktop/src/renderer/src/pages/onboarding/index.tsx +++ b/apps/desktop/src/renderer/src/pages/onboarding/index.tsx @@ -45,30 +45,24 @@ export default function OnboardingPage() { return (
- {/* Left: Traffic light spacing */} -
- - {/* Brand */} -
+ {/* Left: Brand */} +
Multica
- {/* Center: Step indicator */} -
+ {/* Center: Step indicator (absolute for true centering) */} +
{stepLabel} ({currentStep}/{totalSteps})
{/* Right: Theme toggle */} -
+