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:
1 parent
c1defa565b
commit
d9594a5de5
1 file changed
+3
-2
@@ -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),
|
||||
]
|
||||
|
||||
Reference in new issue
Block a user