From 589f51f4fb1f63e23e53f965565a50a3c1a5c889 Mon Sep 17 00:00:00 2001 From: AskaEth Date: Mon, 2 Nov 2026 03:52:28 +0800 Subject: [PATCH] =?UTF-8?q?docs(app-iced):=20=E8=AE=A2=E6=AD=A3=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E6=B3=A8=E9=87=8A=EF=BC=881180=20=E4=B8=8A=E9=99=90?= =?UTF-8?q?=E6=98=AF=20424=EF=BC=8C=E4=B8=8D=E6=98=AF=20435=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit r3 复审:`layout/tests.rs` 的注释说「现在必须是 435」,同一函数的断言却是 424。 证据:`grep -n 435 crates/app-iced/src/pages/layout/tests.rs` - 第 229 行(旧):`// 1180 —— M68 就是在这条上翻的车(712px),现在必须是 435` → 改成 **424**; - 剩下两处 435 都是**平均口径上界**的正确引用,不是残留: 第 176 行注释「不是『平均步进 × 72』的算术值 435」、 第 180 行 `assert_eq!(measure_average_bound_px(), 435.0)`。 --- crates/app-iced/src/pages/layout/tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/app-iced/src/pages/layout/tests.rs b/crates/app-iced/src/pages/layout/tests.rs index eb71f4b..48e6965 100644 --- a/crates/app-iced/src/pages/layout/tests.rs +++ b/crates/app-iced/src/pages/layout/tests.rs @@ -226,7 +226,7 @@ fn line_length_is_capped_at_72_characters() { assert!(column <= measure_cap_px() + f32::EPSILON); } - // 1180 —— M68 就是在这条上翻的车(712px),现在必须是 435 + // 1180 —— M68 就是在这条上翻的车(712px),现在必须是 424(= measure_cap_px()) let wide = content_column_width(1180.0); assert_eq!(wide, measure_cap_px()); assert!(wide < 712.0, "不许回到 M68 的全宽单卡(712px)");