From 0fcf8fd491a746ff8b78f22637496262c2d21f9c Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Mon, 11 Dec 2023 18:23:00 +0200 Subject: [PATCH] Typing indicator fixed --- public/scripts/group-chats.js | 8 ++++---- public/style.css | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/public/scripts/group-chats.js b/public/scripts/group-chats.js index 1bbb20087..bb5773de1 100644 --- a/public/scripts/group-chats.js +++ b/public/scripts/group-chats.js @@ -716,10 +716,6 @@ async function generateGroupWrapper(by_auto_mode, type = null, params = {}) { setCharacterId(chId); setCharacterName(characters[chId].name); - // Wait for generation to finish - const generateFinished = await Generate(generateType, { automatic_trigger: by_auto_mode, ...(params || {}) }); - await generateFinished; - if (type !== 'swipe' && type !== 'impersonate' && !isStreamingEnabled()) { // update indicator and scroll down typingIndicator @@ -727,6 +723,10 @@ async function generateGroupWrapper(by_auto_mode, type = null, params = {}) { .text(characters[chId].name); typingIndicator.show(); } + + // Wait for generation to finish + const generateFinished = await Generate(generateType, { automatic_trigger: by_auto_mode, ...(params || {}) }); + await generateFinished; } } finally { typingIndicator.hide(); diff --git a/public/style.css b/public/style.css index b7ef54902..d3aadc30a 100644 --- a/public/style.css +++ b/public/style.css @@ -636,6 +636,7 @@ hr { display: none; order: 2; padding-right: 2px; + place-self: center; } #options_button {