Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

fix(ui): align macOS content area with sidebar traffic lights

Gabriel Stein8e97cfdb884a
diff --git a/src/components/ControlPanel.tsx b/src/components/ControlPanel.tsx
index 3aef77f49..f7de8e105 100644
--- a/src/components/ControlPanel.tsx
+++ b/src/components/ControlPanel.tsx
@@ -655,6 +655,12 @@ export default function ControlPanel() {
</div>
</div>
)}
+ {platform === "darwin" && (
+ <div
+ className="w-full h-8 shrink-0"
+ style={{ WebkitAppRegion: "drag" } as React.CSSProperties}
+ />
+ )}
<div className="flex-1 overflow-y-auto relative">
{platform === "darwin" && isMeetingMode && (
<div className="absolute top-2 left-4 z-10">
diff --git a/src/components/ControlPanelSidebar.tsx b/src/components/ControlPanelSidebar.tsx
index 134476e9c..abb8bbd2c 100644
--- a/src/components/ControlPanelSidebar.tsx
+++ b/src/components/ControlPanelSidebar.tsx
@@ -95,12 +95,12 @@ export default function ControlPanelSidebar({
return (
<div className="w-48 h-full shrink-0 border-r border-border/15 dark:border-white/6 flex flex-col bg-surface-1/60 dark:bg-surface-1">
<div
- className={cn("w-full shrink-0", platform === "darwin" ? "h-5" : "h-10")}
+ className="w-full h-10 shrink-0"
style={{ WebkitAppRegion: "drag" } as React.CSSProperties}
/>
{onOpenSearch && (
- <div className="px-2 pb-1">
+ <div className="px-2 pt-1 pb-1">
<button
onClick={onOpenSearch}
className="group flex items-center w-full h-7 px-2.5 rounded-md border border-border/70 dark:border-white/25 bg-transparent hover:bg-foreground/5 dark:hover:bg-white/5 transition-colors gap-2 outline-none focus-visible:ring-1 focus-visible:ring-primary/30"
diff --git a/src/helpers/windowConfig.js b/src/helpers/windowConfig.js
index 9f5669411..7b4bde12e 100644
--- a/src/helpers/windowConfig.js
+++ b/src/helpers/windowConfig.js
@@ -86,7 +86,7 @@ const CONTROL_PANEL_CONFIG = {
frame: false,
...(process.platform === "darwin" && {
titleBarStyle: "hiddenInset",
- trafficLightPosition: { x: 16, y: 28 },
+ trafficLightPosition: { x: 20, y: 20 },
}),
transparent: false,
minimizable: true,