diff --git a/frontend/src/views/ChatView.vue b/frontend/src/views/ChatView.vue index 562676c..1d25dc6 100644 --- a/frontend/src/views/ChatView.vue +++ b/frontend/src/views/ChatView.vue @@ -2256,6 +2256,14 @@ export default { } }) + watch(isRecording, (recording) => { + if (recording) { + document.body.classList.add('is-voice-recording') + } else { + document.body.classList.remove('is-voice-recording') + } + }) + watch([() => currentBackground.value?.id, () => activePetInChat.value?.pet?.id, () => currentPet.value?.id, () => backgroundPets.value.length], async () => { syncSelectedHistoryPet() historyPage.value = 1 @@ -2310,6 +2318,7 @@ export default { } onUnmounted(() => { + document.body.classList.remove('is-voice-recording') if (isInCall.value) { chatStore.exitCallMode() stopCallTimer() @@ -4360,6 +4369,16 @@ export default {