Skip to content

Center the voice speed pill on the play button's line - #76

Closed
LisandroNahuelH wants to merge 1 commit into
crmne:mainfrom
LisandroNahuelH:fix/voice-speed-pill-alignment-v2
Closed

LisandroNahuelH wants to merge 1 commit into
crmne:mainfrom
LisandroNahuelH:fix/voice-speed-pill-alignment-v2

Conversation

@LisandroNahuelH

Copy link
Copy Markdown

The speed pill under a voice note did not sit on the same line as the play button. It hung 5.5 px low, so the pair read as misaligned.

What changed

  • src/ui/conversation.rs: the pill is placed on the play button's middle line, instead of a fixed offset from the row.

One commit, no other change.

How I verified it

  • A headless layout probe measures both boxes on a real frame. Before: button 26.0, pill 31.5 (5.5 px apart). After: both 76.0 (0.0 px apart).
  • cargo build --locked --all-features and cargo test --locked --all-targets --all-features pass on Windows (rustc 1.98, MSVC): 301 tests, 0 failures.

Context

PR #41 is merged in main, but this fix is not. This branch is one commit on top of the current main (2293f1c), so it applies clean.

The player row is declared at the play button's height, but the waveform
and its duration stretch it past that, and the chip is drawn last: egui
cross-aligned the pill to the already stretched rect, which left it
5.5 px below the button. The pill now centers on the row's original
center line, and the click area follows it. Measured with a headless
layout probe: delta +5.5 px before, 0.0 px after.
@LisandroNahuelH
LisandroNahuelH deleted the fix/voice-speed-pill-alignment-v2 branch September 19, 2026 02:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant