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): remove macOS drag bar from content area to eliminate dead space

Gabriel Stein31a45b39e72c
diff --git a/src/components/ControlPanel.tsx b/src/components/ControlPanel.tsx
index 6734a3847..3aef77f49 100644
--- a/src/components/ControlPanel.tsx
+++ b/src/components/ControlPanel.tsx
@@ -631,18 +631,33 @@ export default function ControlPanel() {
/>
</div>
<main className="flex-1 flex flex-col overflow-hidden">
- <div
- className={cn(
- "flex items-center justify-between w-full shrink-0",
- platform === "darwin" ? "h-8" : "h-10"
- )}
- style={{ WebkitAppRegion: "drag" } as React.CSSProperties}
- >
- {isMeetingMode && (
- <div
- className={platform === "darwin" ? "ml-[84px]" : "ml-2"}
- style={{ WebkitAppRegion: "no-drag" } as React.CSSProperties}
- >
+ {platform !== "darwin" && (
+ <div
+ className="flex items-center justify-between w-full h-10 shrink-0"
+ style={{ WebkitAppRegion: "drag" } as React.CSSProperties}
+ >
+ {isMeetingMode && (
+ <div className="ml-2" style={{ WebkitAppRegion: "no-drag" } as React.CSSProperties}>
+ <Button
+ variant="outline-flat"
+ size="sm"
+ onClick={handleExitMeetingMode}
+ className="h-7 px-2.5 pl-1.5 gap-1"
+ >
+ <ChevronLeft size={14} strokeWidth={1.8} />
+ {t("controlPanel.backToNotes")}
+ </Button>
+ </div>
+ )}
+ <div className="flex-1" />
+ <div className="pr-1" style={{ WebkitAppRegion: "no-drag" } as React.CSSProperties}>
+ <WindowControls />
+ </div>
+ </div>
+ )}
+ <div className="flex-1 overflow-y-auto relative">
+ {platform === "darwin" && isMeetingMode && (
+ <div className="absolute top-2 left-4 z-10">
<Button
variant="outline-flat"
size="sm"
@@ -654,14 +669,6 @@ export default function ControlPanel() {
</Button>
</div>
)}
- <div className="flex-1" />
- {platform !== "darwin" && (
- <div className="pr-1" style={{ WebkitAppRegion: "no-drag" } as React.CSSProperties}>
- <WindowControls />
- </div>
- )}
- </div>
- <div className="flex-1 overflow-y-auto pt-1">
{usage?.isPastDue && activeView === "home" && (
<div className="max-w-3xl mx-auto w-full mb-3">
<div className="rounded-lg border border-amber-200 dark:border-amber-800 bg-amber-50 dark:bg-amber-950/50 p-3">