Skip to content

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

fix: consistent window width across all phases, only grow with text length

Gabriel Stein5b662b8c0962
diff --git a/src/components/TranscriptionPreviewOverlay.tsx b/src/components/TranscriptionPreviewOverlay.tsx
index 52805d692..441c5e826 100644
--- a/src/components/TranscriptionPreviewOverlay.tsx
+++ b/src/components/TranscriptionPreviewOverlay.tsx
@@ -67,11 +67,10 @@ export default function TranscriptionPreviewOverlay() {
}, [phase]);
const targetWidth = useMemo(() => {
- if (phase === "listening" && !rawText) return 400;
if (activeText.length > 300) return 540;
- if (activeText.length > 100 || phase === "cleanup" || phase === "final") return 480;
+ if (activeText.length > 100) return 480;
return 420;
- }, [activeText.length, phase, rawText]);
+ }, [activeText.length]);
const showFinalResult = useCallback(
(text: string) => {