From d9594a5de56416a9959f00b46201b003921bdbe3 Mon Sep 17 00:00:00 2001 From: Yuriy Panov Date: Mon, 26 Oct 2026 17:29:13 +0600 Subject: [PATCH] fix: don't clip descenders in the sign-in code Co-Authored-By: Claude Opus 5.5 --- crates/musyx/src/screens/sign_in.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/musyx/src/screens/sign_in.rs b/crates/musyx/src/screens/sign_in.rs index 744e03d..c4d713f 100644 --- a/crates/musyx/src/screens/sign_in.rs +++ b/crates/musyx/src/screens/sign_in.rs @@ -273,8 +273,9 @@ impl SignIn { let copied = w.copied_at.is_some_and(|at| w.now.duration_since(at) < Duration::from_secs(2)); let code_box = row![ - container(line(spaced(&w.code.user_code), theme::DISPLAY, 30.0, t.fg)) - .padding([14, 18]) + // Taller line so descenders (j, g, y) aren't clipped; padding shrinks to keep the card size. + container(line(spaced(&w.code.user_code), theme::DISPLAY, size::DISPLAY_S, t.fg).line_height(1.5)) + .padding([11, 18]) .style(theme::card), ghost(t, Icon::Copy, if copied { tr("Copied") } else { tr("Copy code") }, Msg::CopyCode), ]