mirror of
https://github.com/wahyd4/links.git
synced 2026-08-08 21:04:53 +10:00
- Added VoiceButton component (inline in App.jsx) with full mousedown/mouseup/mouseleave + touchstart/touchend/touchcancel support - Shows context-aware label: 🎙 按住说话 / ⏳ 准备中 / 🔴 松开发送 / ⚙ 思考中 / 🔊 播放中 - Pulsing red animation while recording, amber pulse while acquiring mic - Disabled (gray) while AI is thinking or speaking - Desktop: pill button docked at bottom of chat panel (max-width 380px) - Mobile: fixed to bottom of viewport with safe-area-inset support, height 60px for easy thumb tap; right-col padded so messages aren't hidden - Updated hint text and listening status to be input-agnostic Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>