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): extend sidebar chat panel to top of window on macOS

Gabriel Stein1051dd5ce211
diff --git a/src/components/notes/EmbeddedChat.tsx b/src/components/notes/EmbeddedChat.tsx
index 04c0b3733..019e5710f 100644
--- a/src/components/notes/EmbeddedChat.tsx
+++ b/src/components/notes/EmbeddedChat.tsx
@@ -34,6 +34,7 @@ interface EmbeddedChatProps {
activeConversationId?: number | null;
onSwitchConversation?: (id: number) => void;
onNewChat?: () => void;
+ sidebarClassName?: string;
}
function EmptyState() {
@@ -64,6 +65,7 @@ export default function EmbeddedChat({
activeConversationId,
onSwitchConversation,
onNewChat,
+ sidebarClassName,
}: EmbeddedChatProps) {
const { t } = useTranslation();
@@ -223,7 +225,8 @@ export default function EmbeddedChat({
"border-l border-border/25 dark:border-white/10",
"bg-surface-1 dark:bg-surface-2",
"flex flex-col",
- "min-h-0"
+ "min-h-0",
+ sidebarClassName
)}
>
{chatContent}
diff --git a/src/components/notes/NoteEditor.tsx b/src/components/notes/NoteEditor.tsx
index f8be1ec46..206b9194c 100644
--- a/src/components/notes/NoteEditor.tsx
+++ b/src/components/notes/NoteEditor.tsx
@@ -34,6 +34,9 @@ import EmbeddedChat, { type EmbeddedChatMode } from "./EmbeddedChat";
import { useEmbeddedChat } from "../../hooks/useEmbeddedChat";
import { normalizeDbDate } from "../../utils/dateFormatting";
import { parseTranscriptSegments } from "../../utils/parseTranscriptSegments";
+import { getCachedPlatform } from "../../utils/platform";
+
+const isMac = getCachedPlatform() === "darwin";
function formatNoteDate(dateStr: string): string {
const date = normalizeDbDate(dateStr);
@@ -597,6 +600,7 @@ export default function NoteEditor({
activeConversationId={embeddedChat.activeConversationId}
onSwitchConversation={embeddedChat.switchConversation}
onNewChat={embeddedChat.startNewChat}
+ sidebarClassName={isMac ? "-mt-8 pt-8" : undefined}
/>
)}
</div>