style(ai-outfit): 明细表再缩「衣服图/结果·原因」、标题更宽 (§19.26)

承接 §19.25:_configure_detail_table_columns 把「衣服图」(col3) 初值
150→90、「结果/原因」(col5) 220→130(仍 Interactive 可手拖);「标题」
Stretch 自动吸收省下的宽度变更宽,短固定列(行/货号/状态)不变。

测试:列宽用例补断言 columnWidth(3)<=90、columnWidth(5)<=130。
全套 py37 通过(test_config_service 的 packaging 模板失败属并行 §19.13,无关)。
离屏冒烟:衣服图=90 / 结果·原因=130(Interactive)、标题 Stretch。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-23 17:09:42 +08:00
co-authored by Claude Opus 4.8
parent 04bc587538
commit be1eb9ee36
4 changed files with 24 additions and 2 deletions
+2 -2
View File
@@ -602,9 +602,9 @@ class AiOutfitPanel(QWidget):
widths = {
0: 46, # 行
2: 88, # 货号
3: 150, # 衣服图
3: 90, # 衣服图(§19.26 再缩,让位给标题)
4: 76, # 状态
5: 220, # 结果 / 原因
5: 130, # 结果 / 原因(§19.26 再缩)
}
for col, width in widths.items():
header.setSectionResizeMode(col, QHeaderView.Fixed if col in (0, 2, 4) else QHeaderView.Interactive)