From 21e87ee2c640e4f9bdb45f59890f4aa2748f5755 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=80=A7=E9=A9=8A?= Date: Fri, 20 Nov 2026 16:23:22 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=88=E9=9D=A2=E4=BF=AE=E5=BE=A9=EF=BC=9A?= =?UTF-8?q?=E7=80=8F=E8=A6=BD=E5=99=A8=E8=A8=AD=E5=AE=9A=E6=AA=94=E7=9A=84?= =?UTF-8?q?=20Firefox=20=E8=AA=AA=E6=98=8E=E6=96=87=E5=AD=97=E7=94=A8?= =?UTF-8?q?=E7=B9=AA=E8=A3=BD=E5=AD=97=E9=AB=94=EF=BC=88FONT=5FSM=EF=BC=89?= =?UTF-8?q?=E9=87=8F=E5=AF=AC=E6=8F=9B=E8=A1=8C=E2=80=94=E2=80=94=E4=B9=8B?= =?UTF-8?q?=E5=89=8D=E7=94=A8=20CAPTION=20=E9=87=8F=E3=80=81SMALL=20?= =?UTF-8?q?=E7=95=AB=EF=BC=8C=E8=A1=8C=E5=B0=BE=E6=BA=A2=E5=87=BA=E5=8D=A1?= =?UTF-8?q?=E7=89=87=2011px=20=E4=B8=A6=E6=8A=8A=E8=A8=AD=E5=AE=9A?= =?UTF-8?q?=E2=80=BA=E9=9B=BB=E8=85=A6=E9=A0=81=E6=92=90=E5=AF=AC=2037px?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 已驗證: cargo test 全綠(layout_audit 5 passed,含設定›電腦兩資料組)、cargo test layout_audit --- src/app.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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.)