diff --git a/src/app.rs b/src/app.rs index d7fd41e..2a4d2a8 100644 --- a/src/app.rs +++ b/src/app.rs @@ -5124,7 +5124,9 @@ impl App { } }); if let Some(note) = note { - let font = egui::FontId::proportional(FONT_XS); + // Measure with the font the label actually draws in (it is FONT_SM here): a + // narrower measuring font wraps too late and the line pokes past the card. + let font = egui::FontId::proportional(FONT_SM); let text = wrap_to_width(&t(note), (row_w - 26.0).max(80.0), |x| ui.painter().layout_no_wrap(x.to_string(), font.clone(), egui::Color32::WHITE).size().x); ui.horizontal(|ui| { // (Under the name, past the radio button.)