fix: don't clip descenders in the sign-in code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Yuriy PanovandClaude Opus 5.5 committed 2026-10-26 17:29:13 +06:00
1 parent c1defa565b
commit d9594a5de5
1 file changed
+3 -2
+3 -2
View File
@@ -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 copied = w.copied_at.is_some_and(|at| w.now.duration_since(at) < Duration::from_secs(2));
let code_box = row![ let code_box = row![
container(line(spaced(&w.code.user_code), theme::DISPLAY, 30.0, t.fg)) // Taller line so descenders (j, g, y) aren't clipped; padding shrinks to keep the card size.
.padding([14, 18]) container(line(spaced(&w.code.user_code), theme::DISPLAY, size::DISPLAY_S, t.fg).line_height(1.5))
.padding([11, 18])
.style(theme::card), .style(theme::card),
ghost(t, Icon::Copy, if copied { tr("Copied") } else { tr("Copy code") }, Msg::CopyCode), ghost(t, Icon::Copy, if copied { tr("Copied") } else { tr("Copy code") }, Msg::CopyCode),
] ]