Add effect on debug drawer start button

This commit is contained in:
Xin Wang
2026-08-05 09:27:17 +08:00
parent bee1e97cdb
commit 206f732d5c
@@ -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={[