Merge branch 'main' of https://gitea.xiaowang.eu.org/wx44wx/ai-video-fullstack
This commit is contained in:
@@ -1081,15 +1081,29 @@ function DebugIdleHub({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex min-h-0 flex-1 flex-col items-center justify-center gap-3 px-6 py-8 text-center">
|
<div className="flex min-h-0 flex-1 flex-col items-center justify-center gap-3 px-6 py-8 text-center">
|
||||||
<Button
|
<div className="relative inline-flex">
|
||||||
disabled={Boolean(message)}
|
{!message && (
|
||||||
onClick={() => void connect()}
|
<>
|
||||||
className="h-11 gap-2 rounded-full px-6 text-sm font-medium shadow-sm"
|
<span
|
||||||
aria-label={status === "failed" ? "重新连接" : "开始语音测试"}
|
aria-hidden
|
||||||
>
|
className="mobile-call-ripple pointer-events-none absolute inset-0 rounded-full bg-primary/35"
|
||||||
<Mic size={18} />
|
/>
|
||||||
{status === "failed" ? "重新连接" : "开始对话"}
|
<span
|
||||||
</Button>
|
aria-hidden
|
||||||
|
className="mobile-call-ripple mobile-call-ripple-delay pointer-events-none absolute inset-0 rounded-full bg-primary/25"
|
||||||
|
/>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
|
<Button
|
||||||
|
disabled={Boolean(message)}
|
||||||
|
onClick={() => void connect()}
|
||||||
|
className="relative z-10 h-11 gap-2 rounded-full px-6 text-sm font-medium shadow-sm"
|
||||||
|
aria-label={status === "failed" ? "重新连接" : "开始语音测试"}
|
||||||
|
>
|
||||||
|
<Mic size={18} />
|
||||||
|
{status === "failed" ? "重新连接" : "开始对话"}
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
{helperText && (
|
{helperText && (
|
||||||
<p
|
<p
|
||||||
className={[
|
className={[
|
||||||
|
|||||||
Reference in New Issue
Block a user