feat(servicemenu): 恢复三列布局,放大状态徽章至 60px - #1318
Open
zzd1314 wants to merge 12 commits into
Open
Conversation
…ister servicemenu
- servicemenu: 封装 loadFont 检查字体加载错误、检查 cmd.Run 错误、 SetTheme 补注释、删除未用参数、简化 clamp 闭包、gocritic assignOp - aifalse: fmt.Errorf 改用 pkg/errors(forbidigo)、切片预分配(prealloc)、 gpTs 改名 gpTS(stylecheck)、gpustate 去掉恒为 nil 的 error 返回(unparam)、 lhm_autosetup 补齐错误检查与未用参数 - abineundo: syscall.Syscall 升级 SyscallN(SA1019)、消除 else-return(revive) - hardware_other: 占位函数未用参数改 _
- itemsPerRow: 2 → 3,回归三列服务列表 - 状态圆徽 iconD: 28 → 60px,勾/叉线宽 3 → 5,叉臂比 0.30 → 0.36 - 名称增加 ellipsizeByWidth 保护,防止长名字压到圆徽 - 文本可用宽度按新圆徽尺寸(iconD + iconRight + iconGap)重算 - nameBaseline 55 → 50,为后续两行简介布局预留空间 - 左侧状态色条 h-48 → h-40,匹配新文本块高度
fumiama
requested changes
Sep 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更说明
服务列表卡片从两列恢复为三列,同时状态徽章从 28px 放大到 60px,提升远看可读性。
具体改动
行为变化
后续 PR
本 PR 只改布局和徽章尺寸。PR 2 将简介改为两行折行(wrapByWidth),解决部分长简介过早省略的问题。
验证