Files
Neo-ZQYY/docs/audit/changes/2026-03-13__board-finance-line-height-audit.md
Neo 14a12342b5 chore(audit): 补追 96 份未入仓审计孤本 — 覆盖 2026-02-26 ~ 2026-04-08
这些审计记录原本堆积在 docs/audit/changes/changes/ 嵌套误产物目录下(由开发机迁移
79d3c2e 前后的不明批量操作产生)。由于同期 .gitignore 屏蔽了 docs/audit/ 全目录,
它们从未入过 git 任何分支 history。删除即永久丢失。

按 docs/specs/audit-gap-recovery/tasks.md 阶段 1 执行,将全部 96 份 D 类孤本
(主目录无同名、git history 亦无记录)复制到 docs/audit/changes/ 主目录入仓。

涵盖主题: P1-P18 全栈集成 / 多模块累积变更 / ETL bug 修复 / 业务日切 /
   召回与任务引擎改造 / 租户管理与审批 / 董事会财务 / 客户与助教详情 /
   DDL 基线合并 / Kiro 到 Claude Code 迁移

阶段 2(B 类内容漂移 1 份)和阶段 4(嵌套目录删除)独立推进。

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-20 06:35:42 +08:00

39 lines
1.7 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 审计记录board-finance line-height 全量补齐
- 日期2026-03-13
- Prompt遵循 docs/miniprogram-dev 下各文档的规范,配合 tools/h5-to-mp-checker 的脚本,对看板-财务进行原型图的比对,输出比对文档。并修复。
## 直接原因
运行 `h5-to-mp-checker` 工具检测到 45 处严重问题,均为 line-height 缺失。H5 原型中 Tailwind 字号类text-xs/text-sm/text-base/text-lg捆绑了 line-height但小程序 WXSS 只写了 font-size 未写 line-height导致行高回退微信默认值。
## 改动方案
`board-finance.wxss` 中 20 个选择器补齐 line-height
- text-xs11px对应选择器 → `line-height: 28rpx`16px × 2 × 0.875 = 28
- text-sm14px对应选择器 → `line-height: 34rpx`20px × 2 × 0.875 ≈ 35 取偶 34
- text-base16px对应选择器 → `line-height: 42rpx`24px × 2 × 0.875 = 42
- emoji 元素 → `line-height: 1`
## 文件清单
| 文件 | 变更类型 |
|------|----------|
| `apps/miniprogram/miniprogram/pages/board-finance/board-finance.wxss` | 修改20 处 line-height 补齐) |
| `docs/reports/board-finance-h5-mp-audit.md` | 重写(工具原始报告 → 人工审阅报告) |
## 风险评估
- 风险等级:低
- 影响范围:仅 board-finance 页面的文本行高
- line-height 补齐不影响布局逻辑,仅使文本块高度更精确
## 回滚方案
删除各选择器中新增的 `line-height` 属性行即可回退。
## 验证方式
1. 微信开发者工具预览 board-finance 页面,对比 H5 原型截图
2. 重新运行 `h5-to-mp-checker` 确认严重问题数降为 0仅剩 emoji 元素的预期差异)