fix(voice): keep the voice preferences in reach from chat Settings

With Voice Preview off the voice panel never opens on its own, and chat
Settings hid the voice preferences, so the Preview toggle, inactivity
timeout and model tier could not be reached by pointer. Chat Settings now
show them below the chat options, still in chat's frame and without the
voice tabs.
This commit is contained in:
Sameh Khamis committed 2026-11-03 15:54:54 -08:00
1 parent 4f4af9c4e0
commit 829db19f60
4 files changed
+71 -8

No files matched your search

+8 -2
View File
@@ -1242,14 +1242,20 @@ body[data-assistant-docked='true'] #right-context-rail {
display: none;
}
/* Settings opened from chat: same frame as chat, chat options only. */
/* Settings opened from chat: same frame as chat, chat options first, then
the voice preferences, the only pointer route to them while Preview is off. */
#command-dock
#gev-voice-control
#gev-voice-panel[data-context='chat']
:is(.gev-voice-panel-tabs, .gev-panel-layout, #gev-settings-voice),
:is(.gev-voice-panel-tabs, .gev-panel-layout),
#gev-voice-panel:not([data-context='chat']) #gev-settings-chat {
display: none;
}
#gev-voice-panel[data-context='chat'] #gev-settings-voice {
margin-top: 0.75rem;
padding-top: 0.75rem;
border-top: 1px solid var(--glass-border);
}
#gev-voice-control
#gev-voice-panel[data-context='chat'][data-placement='compact']:not(
[data-minimized]
+4 -4
View File
@@ -125,6 +125,10 @@ const frameStyle = (panel) => ({
<UiSelect id="gev-voice-provider" class="gev-field" :aria-label="t('AI Provider')" :title="view.provider.title" :model-value="view.provider.value" @update:model-value="emit('provider-change', $event)"><option v-for="option in view.provider.options" :key="option.value" :value="option.value">{{ option.label }}</option></UiSelect>
</label>
<p class="gev-voice-settings-note">{{ t('The selected AI provider is shared by voice and chat.') }}</p>
<div id="gev-settings-chat">
<label class="gev-voice-preference gev-voice-preference-toggle"><input id="gev-chat-quick" type="checkbox" v-checked="view.chat.quickChecked" @change="emit('chat-quick-change', $event.target.checked)" /><span>{{ t('Show quick commands') }}</span></label>
<p>{{ t('Chat replies are silent. No microphone access is needed.') }}</p>
</div>
<div id="gev-settings-voice">
<label class="gev-voice-preference gev-voice-preference-toggle"><input id="gev-voice-preview-enabled" type="checkbox" aria-describedby="gev-voice-preview-note" v-checked="view.preferences.previewChecked" @change="emit('preview-change', $event.target.checked)" /><span>{{ t('Show Voice Preview') }}</span></label>
<p id="gev-voice-preview-note" class="gev-voice-settings-note">{{ view.preferences.previewNote }}</p>
@@ -152,10 +156,6 @@ const frameStyle = (panel) => ({
</div>
</div>
</div>
<div id="gev-settings-chat">
<label class="gev-voice-preference gev-voice-preference-toggle"><input id="gev-chat-quick" type="checkbox" v-checked="view.chat.quickChecked" @change="emit('chat-quick-change', $event.target.checked)" /><span>{{ t('Show quick commands') }}</span></label>
<p>{{ t('Chat replies are silent. No microphone access is needed.') }}</p>
</div>
</section>
</div>
</section>