Skip to content

Commit

Permalink
Fix input 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Сариев Эдуард committed Nov 8, 2023
1 parent 8ec6dbb commit 5ec2a8f
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions src/lib/Chat.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
faPaperPlane,
faGear,
faPenToSquare,
faMicrophone,
faLightbulb,
faCommentSlash,
faCircleCheck
Expand Down Expand Up @@ -343,6 +344,18 @@
})
}
const recordToggle = () => {
ttsStop()

Check failure on line 348 in src/lib/Chat.svelte

View workflow job for this annotation

GitHub Actions / lint

Expected indentation of 2 spaces but found 4
if (chatRequest.updating) return

Check failure on line 349 in src/lib/Chat.svelte

View workflow job for this annotation

GitHub Actions / lint

Expected indentation of 2 spaces but found 4
// Check if already recording - if so, stop - else start

Check failure on line 350 in src/lib/Chat.svelte

View workflow job for this annotation

GitHub Actions / lint

Expected indentation of 2 spaces but found 4
if (recording) {

Check failure on line 351 in src/lib/Chat.svelte

View workflow job for this annotation

GitHub Actions / lint

Expected indentation of 2 spaces but found 4
recognition?.stop()

Check failure on line 352 in src/lib/Chat.svelte

View workflow job for this annotation

GitHub Actions / lint

Expected indentation of 4 spaces but found 8
recording = false

Check failure on line 353 in src/lib/Chat.svelte

View workflow job for this annotation

GitHub Actions / lint

Expected indentation of 4 spaces but found 8
} else {

Check failure on line 354 in src/lib/Chat.svelte

View workflow job for this annotation

GitHub Actions / lint

Expected indentation of 2 spaces but found 4
recognition?.start()

Check failure on line 355 in src/lib/Chat.svelte

View workflow job for this annotation

GitHub Actions / lint

Expected indentation of 4 spaces but found 8
}

Check failure on line 356 in src/lib/Chat.svelte

View workflow job for this annotation

GitHub Actions / lint

Expected indentation of 2 spaces but found 4
}
</script>
{#if chat}
<ChatSettingsModal chatId={chatId} bind:show={showSettingsModal} />
Expand Down Expand Up @@ -400,13 +413,14 @@
}
}}
on:input={e => autoGrowInputOnEvent(e)}
bind:this={input}></textarea>
bind:this={input}
/>
</p>
<!-- <p class="control mic" class:is-hidden={!recognition}>
<p class="control mic" class:is-hidden={!recognition}>
<button class="button" class:is-disabled={chatRequest.updating} class:is-pulse={recording} on:click|preventDefault={recordToggle}
><span class="icon"><Fa icon={faMicrophone} /></span></button
>
</p> -->
</p>
<p class="control settings">
<button title="Chat/Profile Settings" class="button" on:click|preventDefault={showSettingsModal}><span class="icon"><Fa icon={faGear} /></span></button>
</p>
Expand Down

0 comments on commit 5ec2a8f

Please sign in to comment.