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): reduce macOS title bar dead space to align content with traffic lights

Gabriel Stein719bea5f3420
diff --git a/src/components/ControlPanel.tsx b/src/components/ControlPanel.tsx
index 3d5625c06..6734a3847 100644
--- a/src/components/ControlPanel.tsx
+++ b/src/components/ControlPanel.tsx
@@ -21,6 +21,7 @@ import {
import { useSettingsStore } from "../stores/settingsStore";
import ControlPanelSidebar, { type ControlPanelView } from "./ControlPanelSidebar";
import WindowControls from "./WindowControls";
+import { cn } from "./lib/utils";
import { getCachedPlatform } from "../utils/platform";
import { setActiveNoteId, setActiveFolderId, initializeNotes } from "../stores/noteStore";
@@ -631,12 +632,15 @@ export default function ControlPanel() {
</div>
<main className="flex-1 flex flex-col overflow-hidden">
<div
- className="flex items-center justify-between w-full h-10 shrink-0"
+ 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] mt-[16px]" : "ml-2"}
+ className={platform === "darwin" ? "ml-[84px]" : "ml-2"}
style={{ WebkitAppRegion: "no-drag" } as React.CSSProperties}
>
<Button
diff --git a/src/components/ControlPanelSidebar.tsx b/src/components/ControlPanelSidebar.tsx
index d1c37e444..e747c01fb 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="w-full h-10 shrink-0"
+ className={cn("w-full shrink-0", platform === "darwin" ? "h-8" : "h-10")}
style={{ WebkitAppRegion: "drag" } as React.CSSProperties}
/>
{onOpenSearch && (
- <div className="px-2 pt-2 pb-1">
+ <div className="px-2 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 7b4bde12e..abb88fcb7 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: 20, y: 20 },
+ trafficLightPosition: { x: 16, y: 14 },
}),
transparent: false,
minimizable: true,