fix(app-iced,i18n): 分高改「面板先保预算」+ 说明压成单行(D30 五审一次性重分配)
五审:菜单文字/720 列表/44-97 标定/04 都过,但滚动区被压到 82px(宽)/24px(窄)——宽档切 「安装选项」字身、六枚 chip 0 像素。塔裁决停止逐轮调顺序,一次性重分配: 1. **分高从「对半分」改成「面板先保预算」**:`PANEL_BUDGET = 300`(滚动区 128 + 钉死区 136), `whole_rows = floor((column − LIST_CHROME − PANEL_BUDGET)/44) × 44`。 1180×760:580−97−300 = 183 ⇒ **176px = 4 整行**(原 5 行),面板 307px ⇒ 滚动区 ≈150px; 1180×900:323 ⇒ **308px = 7 整行**(未变)。720 档走 `None`(Fill),未动。 2. **说明压成单行**(`DownloadOptionsLiteLoaderVanillaOnly`):两行 28px 是滚动区最大的可压项。 en `Vanilla parent only — Forge goes through the CLI` / zh `只叠原版;叠 Forge 请走命令行`; 完整命令行说法留在 `ull help install`。单测断言随之改成「含该句 + 只有一行」并写明原因。 文档按六审要求改口:滚走的是说明/错误行(非控件);说明变单行后 760 档滚动区已能装下 head+标签+chips+单行说明,**无需滚动**。
This commit is contained in:
1 parent
6eb7132ab0
commit
cb2cffb3ca
5 files changed
+25
-12
No files matched your search
@@ -291,11 +291,10 @@ fn liteloader_carries_a_neutral_note_without_blocking_confirm() {
|
||||
Lang::En.catalog(),
|
||||
);
|
||||
let note = options.note.as_deref().expect("LiteLoader 应带中性说明");
|
||||
assert!(note.contains("vanilla"), "{note}");
|
||||
assert!(
|
||||
note.contains("--loader liteloader"),
|
||||
"要给出可执行的下一步:{note}"
|
||||
);
|
||||
// 文案在 D30 五审后压成**单行**(两行 28px 是滚动区最大的可压项),断言随之改为
|
||||
// 「说清只支持原版父链、且确实只有一行」;完整命令行说法在 `ull help install` 里。
|
||||
assert!(note.contains("Vanilla parent only"), "{note}");
|
||||
assert_eq!(note.lines().count(), 1, "必须是一行:{note}");
|
||||
assert!(options.problem.is_none(), "中性说明不能变成错误");
|
||||
assert!(options.can_confirm, "说明不该禁用确认键");
|
||||
|
||||
@@ -312,7 +311,7 @@ fn liteloader_carries_a_neutral_note_without_blocking_confirm() {
|
||||
Lang::ZhCn.catalog(),
|
||||
);
|
||||
let note = options.note.as_deref().expect("中文也要有说明");
|
||||
assert!(note.contains("原版"), "{note}");
|
||||
assert!(note.contains("只叠原版"), "{note}");
|
||||
assert!(options.can_confirm);
|
||||
|
||||
// 别家加载器不带这条说明。
|
||||
|
||||
Reference in new issue
Block a user