diff --git a/src/App.svelte b/src/App.svelte index d38a3aaa..8d0773bf 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -78,12 +78,12 @@ /> + .backdrop { + position: fixed; + top: 0; + bottom: 0; + right: 0; + left: 0; + background: transparent + } + \ No newline at end of file diff --git a/src/lib/Chat.svelte b/src/lib/Chat.svelte index 99921e10..8520af13 100644 --- a/src/lib/Chat.svelte +++ b/src/lib/Chat.svelte @@ -345,15 +345,15 @@ } const recordToggle = () => { - ttsStop() - if (chatRequest.updating) return - // Check if already recording - if so, stop - else start - if (recording) { - recognition?.stop() - recording = false - } else { - recognition?.start() - } + ttsStop() + if (chatRequest.updating) return + // Check if already recording - if so, stop - else start + if (recording) { + recognition?.stop() + recording = false + } else { + recognition?.start() + } } @@ -395,6 +395,7 @@ {#if $currentChatId !== 0 && ($currentChatMessages.length === 0 || ($currentChatMessages.length === 1 && $currentChatMessages[0].role === 'system'))} {/if} +