Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.
JavaScript aianthropiccross-platformgeminigroqlinuxmacosnvidiaopen-sourceopenaiparakeetspeech-to-texttranscribewhisperwindows
refactor: move notification dismiss button to overlaid top-left circle on hover
Gabriel Stein9d0eeeed38fa
diff --git a/src/components/MeetingNotificationOverlay.tsx b/src/components/MeetingNotificationOverlay.tsxindex 7388766cc..bd5179356 100644--- a/src/components/MeetingNotificationOverlay.tsx+++ b/src/components/MeetingNotificationOverlay.tsx@@ -52,15 +52,23 @@ export default function MeetingNotificationOverlay() {<div className="meeting-notification-window w-full h-full bg-transparent p-2"><divclassName={[+ "group relative","bg-card/95 dark:bg-surface-2/95 backdrop-blur-xl","border border-border/40 dark:border-border-subtle/40",- "rounded-xl shadow-lg p-2.5",+ "rounded-xl shadow-lg p-2.5 overflow-visible","transition-all duration-300 ease-out",isVisible? "translate-x-0 opacity-100 scale-100": "translate-x-[120%] opacity-0 scale-95",].join(" ")}>+ <button+ onClick={() => respond("dismiss")}+ className="absolute -left-2 -top-2 size-6 rounded-full flex items-center justify-center bg-white/10 backdrop-blur-sm border border-white/10 text-white/70 hover:text-white hover:bg-white/20 opacity-0 scale-75 group-hover:opacity-100 group-hover:scale-100 transition-all duration-150 focus:outline-none focus-visible:ring-1 focus-visible:ring-white/30"+ >+ <X className="size-3" />+ </button>+<div className="flex items-center gap-2.5"><div className="shrink-0 bg-primary/10 rounded-md p-1"><svg viewBox="0 0 1024 1024" className="w-4.5 h-4.5">@@ -87,13 +95,6 @@ export default function MeetingNotificationOverlay() {>Start Recording</button>-- <button- onClick={() => respond("dismiss")}- className="shrink-0 text-muted-foreground/60 hover:text-foreground transition-colors p-0.5"- >- <X className="w-3.5 h-3.5" />- </button></div></div></div>diff --git a/src/components/UpdateNotificationOverlay.tsx b/src/components/UpdateNotificationOverlay.tsxindex 69d1eb87e..04d7fec1d 100644--- a/src/components/UpdateNotificationOverlay.tsx+++ b/src/components/UpdateNotificationOverlay.tsx@@ -52,15 +52,23 @@ export default function UpdateNotificationOverlay() {<div className="meeting-notification-window w-full h-full bg-transparent p-2"><divclassName={[+ "group relative","bg-card/95 dark:bg-surface-2/95 backdrop-blur-xl","border border-border/40 dark:border-border-subtle/40",- "rounded-xl shadow-lg p-2.5",+ "rounded-xl shadow-lg p-2.5 overflow-visible","transition-all duration-300 ease-out",isVisible? "translate-x-0 opacity-100 scale-100": "translate-x-[120%] opacity-0 scale-95",].join(" ")}>+ <button+ onClick={() => respond("dismiss")}+ className="absolute -left-2 -top-2 size-6 rounded-full flex items-center justify-center bg-white/10 backdrop-blur-sm border border-white/10 text-white/70 hover:text-white hover:bg-white/20 opacity-0 scale-75 group-hover:opacity-100 group-hover:scale-100 transition-all duration-150 focus:outline-none focus-visible:ring-1 focus-visible:ring-white/30"+ >+ <X className="size-3" />+ </button>+<div className="flex items-center gap-2.5"><div className="shrink-0 bg-primary/10 rounded-md p-1"><svg viewBox="0 0 1024 1024" className="w-4.5 h-4.5">@@ -87,13 +95,6 @@ export default function UpdateNotificationOverlay() {>{t("updateNotification.cta")}</button>-- <button- onClick={() => respond("dismiss")}- className="shrink-0 text-muted-foreground/60 hover:text-foreground transition-colors p-0.5"- >- <X className="w-3.5 h-3.5" />- </button></div></div></div>diff --git a/src/components/ui/Toast.tsx b/src/components/ui/Toast.tsxindex 93cae0d62..d4355ef3b 100644--- a/src/components/ui/Toast.tsx+++ b/src/components/ui/Toast.tsx@@ -198,9 +198,7 @@ const Toast: React.FC<await navigator.clipboard.writeText(description);setCopied(true);setTimeout(() => setCopied(false), 2000);- } catch {- // Silently fail- }+ } catch {}};const message = title || description;@@ -209,7 +207,7 @@ const Toast: React.FC<return (<divclassName={cn(- "group toast-surface pointer-events-auto relative flex w-75 overflow-hidden",+ "group toast-surface pointer-events-auto relative flex w-75","rounded-[5px]","transition-[opacity,transform] duration-200 ease-out",isExiting@@ -221,7 +219,7 @@ const Toast: React.FC<><div className={cn("w-0.5 shrink-0", config.accentClass)} />- <div className="flex items-start gap-2 flex-1 min-w-0 px-2.5 py-2 pr-7">+ <div className="flex items-start gap-2 flex-1 min-w-0 px-2.5 py-2"><div className="flex-1 min-w-0">{message && (<div className="text-xs font-medium leading-tight text-white/90">{message}</div>@@ -263,11 +261,13 @@ const Toast: React.FC<<buttononClick={onClose}className={cn(- "absolute right-1 top-1 p-1 rounded-[3px]",- "text-white/0 group-hover:text-white/50 hover:!text-white/80",- "hover:bg-white/6",- "transition-colors duration-150",- "focus:outline-none focus-visible:ring-1 focus-visible:ring-white/20"+ "absolute -left-2 -top-2 size-6 rounded-full",+ "flex items-center justify-center",+ "bg-white/10 backdrop-blur-sm border border-white/10",+ "text-white/70 hover:text-white hover:bg-white/20",+ "opacity-0 scale-75 group-hover:opacity-100 group-hover:scale-100",+ "transition-all duration-150",+ "focus:outline-none focus-visible:ring-1 focus-visible:ring-white/30")}><X className="size-3" />