diff --git a/packages/stage-layouts/src/components/Widgets/ChatArea.vue b/packages/stage-layouts/src/components/Widgets/ChatArea.vue index 7c2229e4e..ba91221fa 100644 --- a/packages/stage-layouts/src/components/Widgets/ChatArea.vue +++ b/packages/stage-layouts/src/components/Widgets/ChatArea.vue @@ -13,14 +13,14 @@ import { useSettings, useSettingsAudioDevice } from '@proj-airi/stage-ui/stores/ import { BasicTextarea, FieldSelect } from '@proj-airi/ui' import { until } from '@vueuse/core' import { storeToRefs } from 'pinia' -import { TooltipContent, TooltipProvider, TooltipRoot, TooltipTrigger } from 'reka-ui' +import { PopoverContent, PopoverRoot, PopoverTrigger } from 'reka-ui' import { computed, nextTick, onUnmounted, ref, watch } from 'vue' import { useI18n } from 'vue-i18n' import IndicatorMicVolume from './IndicatorMicVolume.vue' const messageInput = ref('') -const hearingTooltipOpen = ref(false) +const hearingPopoverOpen = ref(false) const isComposing = ref(false) const isListening = ref(false) // Transcription listening state (separate from microphone enabled) @@ -128,7 +128,7 @@ async function handleSend() { } } -watch(hearingTooltipOpen, async (value) => { +watch(hearingPopoverOpen, async (value) => { if (value) { await askPermission() } @@ -158,7 +158,7 @@ function teardownAnalyzer() { async function setupAnalyzer() { teardownAnalyzer() - if (!hearingTooltipOpen.value || !enabled.value || !stream.value) + if (!hearingPopoverOpen.value || !enabled.value || !stream.value) return if (audioContext.state === 'suspended') await audioContext.resume() @@ -169,7 +169,7 @@ async function setupAnalyzer() { analyzerSource.connect(analyser) } -watch([hearingTooltipOpen, enabled, stream], () => { +watch([hearingPopoverOpen, enabled, stream], () => { setupAnalyzer() }, { immediate: true }) @@ -427,74 +427,70 @@ watch(autoSendEnabled, (enabled) => { absolute bottom-2 left-2 z-10 flex items-center gap-2 > - - - - - - - -
-
-
-
-
- -
-

- {{ enabled ? 'Microphone enabled' : 'Microphone disabled' }} -

-
- - + + + + +
+
+
- - - - +
+
+ +
+

+ {{ enabled ? 'Microphone enabled' : 'Microphone disabled' }} +

+
+ + + +