fix(protect): 标题栏文字贴边/被截断
Docker Build / Build and Push Docker Image (push) Successful in 31s
Docker Build / Deploy to Server (push) Successful in 3s

根因:老 DuiLib 里 Label 的 margin 只影响布局摆放,不进入文字绘制矩形,
所以标题文字仍从控件左边 0 像素开始画,看着贴边、窄的时候还会被裁。
改成 textpadding(参与文字绘制矩形)+ 明确宽度,七套皮肤的标题一并修:
- 中文标题:width=260, textpadding=20
- AUTHORIZATION:width=200, textpadding=18
- vfy@local:$ auth:width=220, textpadding=14
- 账号中心:width=160, textpadding=16
实测 light / industrial 放大 2 倍确认:文字完整、左侧留白正常、无截断。
This commit is contained in:
Hermes Agent
2026-11-23 03:32:47 +08:00
parent 3eb4ee653f
commit 8a3ecc6594
Binary file not shown.