删除语音模式入口。对话输入口没有文字时,发送按钮是灰色的,无法点击

This commit is contained in:
Gaofeng 2025-11-29 16:36:48 +08:00
parent 9a989304a1
commit bdff48466e

View file

@ -1759,9 +1759,10 @@
</button> </button>
</Tooltip> </Tooltip>
</div> </div>
{:else if prompt === '' && files.length === 0 && ($_user?.role === 'admin' || ($_user?.permissions?.chat?.call ?? true))}
<!-- {:else if prompt === '' && files.length === 0 && ($_user?.role === 'admin' || ($_user?.permissions?.chat?.call ?? true))}
<div class=" flex items-center"> <div class=" flex items-center">
<!-- {$i18n.t('Call')} -->
<Tooltip content={$i18n.t('Voice mode')}> <Tooltip content={$i18n.t('Voice mode')}>
<button <button
class=" bg-black text-white hover:bg-gray-900 dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full p-1.5 self-center" class=" bg-black text-white hover:bg-gray-900 dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full p-1.5 self-center"
@ -1821,7 +1822,7 @@
<Voice className="size-5" strokeWidth="2.5" /> <Voice className="size-5" strokeWidth="2.5" />
</button> </button>
</Tooltip> </Tooltip>
</div> </div> -->
{:else} {:else}
<div class=" flex items-center"> <div class=" flex items-center">
<Tooltip content={$i18n.t('Send message')}> <Tooltip content={$i18n.t('Send message')}>