diff --git a/packages/views/onboarding/components/onboarding-logout-button.tsx b/packages/views/onboarding/components/onboarding-logout-button.tsx index 5ba13e99b1..ab46ec05e0 100644 --- a/packages/views/onboarding/components/onboarding-logout-button.tsx +++ b/packages/views/onboarding/components/onboarding-logout-button.tsx @@ -2,16 +2,24 @@ import { LogOut } from "lucide-react"; import { Button } from "@multica/ui/components/ui/button"; +import { cn } from "@multica/ui/lib/utils"; import { useLogout } from "../../auth"; import { useT } from "../../i18n"; /** * Account-switch escape hatch shared by every onboarding step. * - * The fixed position keeps it available across the flow's full-bleed layouts, - * including the narrow mobile layout where the issue was originally reported. + * `fixed` only for the welcome screen, which has no step header to sit in. + * Every other step passes `inline` so it rides the header row on STEP_FRAME: + * pinning it to the window corner put it outside the measure and above + * Back / Step N of N, which read as a second header row. */ -export function OnboardingLogoutButton() { +export function OnboardingLogoutButton({ + inline = false, +}: { + /** Render in normal flow (inside a step header) instead of pinned. */ + inline?: boolean; +} = {}) { const { t } = useT("onboarding"); const logout = useLogout(); @@ -19,7 +27,10 @@ export function OnboardingLogoutButton() {