style: simplify button manager layout

This commit is contained in:
7015725
2026-05-13 08:15:45 +08:00
parent 3b6830e0ec
commit 648b45585a
4 changed files with 63 additions and 112 deletions

View File

@@ -5,10 +5,13 @@ import sys
root = pathlib.Path(__file__).resolve().parents[1]
text = (root / "code" / "th_14_panels.js").read_text(encoding="utf-8")
checks = [
("manager has polished helper", "createButtonManagerPolishedCard" in text),
("manager has action chip helper", "createButtonManagerActionChip" in text),
("manager card has two-row layout marker", "按钮管理列表卡片:上信息、下操作" in text),
("manager has search surface marker", "按钮管理搜索卡片" in text),
("manager no false long-press sort text", "长按卡片排序" not in text),
("manager no homepage title block", "按钮管理首页" not in text),
("manager uses textual sort chips", "上移" in text and "下移" in text and "孤立箭头" in text),
("manager uses delete chip", "createButtonManagerActionChip(\"删除\"" in text),
("editor has hero helper", "createButtonEditorHeroCard" in text),
("editor has field spacing helper", "addButtonEditorField" in text),
("editor hero visible text", "按钮编辑工作台" in text),