From 72e7a0d33b57c89ce19818fca401b6f44ed75d43 Mon Sep 17 00:00:00 2001 From: lashman Date: Tue, 12 May 2026 00:23:15 +0300 Subject: [PATCH] mic indicator during audio recording --- src/lib/Main.svelte | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/src/lib/Main.svelte b/src/lib/Main.svelte index e26258f..eed049f 100644 --- a/src/lib/Main.svelte +++ b/src/lib/Main.svelte @@ -245,6 +245,17 @@
{elapsed.toFixed(1)}s
+ {#if config?.capture.capture_audio} +
+ + + + + + + audio +
+ {/if}
{#if phase === "recording"} @@ -499,6 +510,29 @@ .recording-row { justify-content: center; } + .mic { + display: inline-flex; + align-items: center; + gap: 6px; + padding: 4px 10px; + border-radius: 999px; + background: #2a1818; + border: 1px solid #4a2222; + color: #b88; + font-size: 0.75rem; + text-transform: uppercase; + letter-spacing: 0.08em; + } + .mic.active { + background: #3a1a1a; + border-color: #c33; + color: #f0c0c0; + animation: mic-pulse 1.8s ease-in-out infinite; + } + @keyframes mic-pulse { + 0%, 100% { box-shadow: 0 0 0 0 rgba(204, 51, 51, 0.5); } + 50% { box-shadow: 0 0 0 6px rgba(204, 51, 51, 0); } + } button { font: inherit; padding: 0.5rem 1rem;