mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 20:34:18 +01:00
On mobile the dictation button sat at the right edge of the composer, directly below the floating cluster (Stop, Clear, TTS pill) anchored to the composer's top-right corner, so the two were adjacent touch targets. Render the dictation button ahead of the composer tools menu so it takes the slot one position left. The reorder exposed a latent bug: renderVoiceButton attaches the same voiceButtonContainerRef for both variants, so the last one rendered owns it. The desktop variant is always rendered (CSS-hidden below md), so moving the mobile variant first handed the ref to the desktop container and the outside-press guard stopped recognising the mic, ending the recording on the first tap. Render the desktop variant only at desktop widths so exactly one voice container exists in the DOM.