add mic on push-to-talk mode, iphone open in phone tab default

This commit is contained in:
Xin Wang 2025-12-17 18:03:37 +08:00
parent 3e0276d6c0
commit eeeed36494
2 changed files with 44 additions and 26 deletions

View File

@ -1121,8 +1121,25 @@ export function PhoneSimulator({
{/* Push-to-Talk Mode Layout */}
{isPushToTalkMode && phoneMode !== "hand_off" && voiceAssistant.agent && (
<div className="w-full flex items-center justify-center gap-8">
{/* Camera Switch Button - Left (hidden in important_message mode) */}
{/* Mic Toggle and Camera Switch Buttons - Left (hidden in important_message mode) */}
{phoneMode !== "important_message" && (
<div className="flex flex-col items-center gap-2">
{/* Mic Toggle Button */}
<button
className={`p-4 rounded-full backdrop-blur-md transition-colors ${
!isMicEnabled
? "bg-white text-black"
: "bg-gray-800/50 text-white hover:bg-gray-800/70"
}`}
onClick={handleMicToggle}
>
{isMicEnabled ? (
<MicIcon className="w-6 h-6" />
) : (
<MicOffIcon className="w-6 h-6" />
)}
</button>
{/* Camera Switch Button */}
<div className="relative">
<button
className="p-4 rounded-full bg-gray-800/50 text-white hover:bg-gray-800/70 transition-colors"
@ -1151,6 +1168,7 @@ export function PhoneSimulator({
</div>
)}
</div>
</div>
)}
{/* Large Push-to-Talk Button - Center (hidden in important_message mode) */}

View File

@ -873,7 +873,7 @@ export default function Playground({
<PlaygroundTabbedTile
className="h-full"
tabs={mobileTabs}
initialTab={mobileTabs.length - 1}
initialTab={0}
/>
</div>
<div