Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

fix(desktop): make login and onboarding windows draggable on macOS

Jiayuan Zhang9f955666166f
diff --git a/apps/desktop/src/renderer/src/pages/login.tsx b/apps/desktop/src/renderer/src/pages/login.tsx
index ca13663a7c..0ba8740b75 100644
--- a/apps/desktop/src/renderer/src/pages/login.tsx
+++ b/apps/desktop/src/renderer/src/pages/login.tsx
@@ -23,46 +23,51 @@ export default function LoginPage() {
if (isLoading) {
return (
- <div
- className="flex h-screen items-center justify-center bg-background"
- style={{ WebkitAppRegion: 'drag' } as React.CSSProperties}
- >
- <Loading className="size-6" />
+ <div className="flex h-screen flex-col bg-background">
+ <header
+ className="shrink-0 h-12"
+ style={{ WebkitAppRegion: 'drag' } as React.CSSProperties}
+ />
+ <div className="flex flex-1 items-center justify-center">
+ <Loading className="size-6" />
+ </div>
</div>
)
}
return (
- <div
- className="flex h-screen flex-col items-center justify-center bg-background p-8 animate-in fade-in duration-300"
- style={{ WebkitAppRegion: 'drag' } as React.CSSProperties}
- >
- <div className="w-full max-w-sm flex flex-col items-center text-center space-y-6">
- {/* Brand */}
- <div className="flex items-center gap-2">
- <MulticaIcon bordered animate size="md" />
- <h1 className="text-lg tracking-wide font-brand">Multica</h1>
- </div>
+ <div className="flex h-screen flex-col bg-background">
+ <header
+ className="shrink-0 h-12"
+ style={{ WebkitAppRegion: 'drag' } as React.CSSProperties}
+ />
+ <div className="flex flex-1 flex-col items-center justify-center p-8 animate-in fade-in duration-300">
+ <div className="w-full max-w-sm flex flex-col items-center text-center space-y-6">
+ {/* Brand */}
+ <div className="flex items-center gap-2">
+ <MulticaIcon bordered animate size="md" />
+ <h1 className="text-lg tracking-wide font-brand">Multica</h1>
+ </div>
- {/* Tagline */}
- <p className="text-sm text-muted-foreground leading-relaxed">
- An AI assistant that gets things done.
- </p>
+ {/* Tagline */}
+ <p className="text-sm text-muted-foreground leading-relaxed">
+ An AI assistant that gets things done.
+ </p>
- {/* Sign In */}
- <Button
- onClick={startLogin}
- size="lg"
- className="px-8"
- style={{ WebkitAppRegion: 'no-drag' } as React.CSSProperties}
- >
- Sign In to Continue
- </Button>
+ {/* Sign In */}
+ <Button
+ onClick={startLogin}
+ size="lg"
+ className="px-8"
+ >
+ Sign In to Continue
+ </Button>
- {/* Helper */}
- <p className="text-xs text-muted-foreground/60">
- Opens browser for authentication
- </p>
+ {/* Helper */}
+ <p className="text-xs text-muted-foreground/60">
+ Opens browser for authentication
+ </p>
+ </div>
</div>
</div>
)
diff --git a/apps/desktop/src/renderer/src/pages/onboarding/index.tsx b/apps/desktop/src/renderer/src/pages/onboarding/index.tsx
index fb43dc698e..5879dc2163 100644
--- a/apps/desktop/src/renderer/src/pages/onboarding/index.tsx
+++ b/apps/desktop/src/renderer/src/pages/onboarding/index.tsx
@@ -44,12 +44,12 @@ 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">
- {/* Left: Draggable area for traffic lights */}
- <div
- className="w-20 h-full shrink-0"
- style={{ WebkitAppRegion: "drag" } as React.CSSProperties}
- />
+ <header
+ className="shrink-0 h-12 flex items-center pr-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">
@@ -65,7 +65,10 @@ export default function OnboardingPage() {
</div>
{/* Right: Theme toggle */}
- <div className="shrink-0">
+ <div
+ className="shrink-0"
+ style={{ WebkitAppRegion: "no-drag" } as React.CSSProperties}
+ >
<ModeToggle />
</div>
</header>