From 437227d9aa86132f3be3b41c89981cb393c903d0 Mon Sep 17 00:00:00 2001 From: Sceik <60520115+sceuick@users.noreply.github.com> Date: Wed, 17 Jul 2024 15:34:44 +0800 Subject: [PATCH] Fix backgrounds and char archiving (#978) - Fix chat padding - Fix character archiving deleting some char props - Fix inputbar background and component rounding --- web/App.tsx | 2 +- web/pages/Chat/components/InputBar.tsx | 29 ++++++++++++------- .../components/SpeechRecognitionRecorder.tsx | 3 +- web/shared/Mode/Detail.tsx | 15 +++++++--- web/shared/hooks.ts | 1 - web/store/character.ts | 3 +- 6 files changed, 34 insertions(+), 19 deletions(-) diff --git a/web/App.tsx b/web/App.tsx index 86353d519..9d1560dde 100644 --- a/web/App.tsx +++ b/web/App.tsx @@ -155,7 +155,7 @@ const Layout: Component<{ children?: any }> = (props) => { + - + @@ -249,7 +249,7 @@ const InputBar: Component<{ - + - + @@ -394,13 +398,16 @@ const InputBar: Component<{ - setText(value)} - onSubmit={() => send()} - cleared={cleared} - listening={setListening} - /> + + setText(value)} + onSubmit={() => send()} + cleared={cleared} + listening={setListening} + class="h-full bg-[var(--bg-800)]" + /> + diff --git a/web/pages/Chat/components/SpeechRecognitionRecorder.tsx b/web/pages/Chat/components/SpeechRecognitionRecorder.tsx index d9532d589..eaed6b1e7 100644 --- a/web/pages/Chat/components/SpeechRecognitionRecorder.tsx +++ b/web/pages/Chat/components/SpeechRecognitionRecorder.tsx @@ -235,11 +235,12 @@ export const SpeechRecognitionRecorder: Component<{ - - + + ( onSuccess?: () => void ) { const previous = map[characterId] - const res = await charsApi.editCharacter(characterId, char, previous) + const update = Object.assign({}, previous, char) + const res = await charsApi.editCharacter(characterId, update) if (res.error) toastStore.error(`Failed to create character: ${res.error}`) if (res.result) {