Repository navigation
v0.30.1 — 设置导航图标修复 / Settings Nav Icon Fix
安装 / Installation
要求 DSH 0.2.2-rc.1 或更新的 0.2.2 线版本。 / Requires DSH 0.2.2-rc.1 or a newer release on the 0.2.2 line.
dsh plugin --profile web add dsh-better-sidebar@0.30.1将 web 换成你实际使用的 profile 名。安装或更新后,按 Cmd/Ctrl + Shift + R 硬刷新浏览器。
Replace web with your profile name. After installing or updating, hard-refresh the browser with Cmd/Ctrl + Shift + R.
| DSH 版本 / DSH version | 插件版本 / Plugin version |
|---|---|
| 0.2.2-rc.1+ | 0.30.1 |
0.2.1-rc.1 ~ 0.2.1-rc.5(npm latest) |
0.28.2 |
| 0.2.1-alpha.5 | 0.28.0-alpha.0 |
| 0.2.0-rc.2 | 0.26.1 |
| 0.2.0-rc.1 | 0.24.1 |
| 0.1.7-rc.1 至 / through 0.1.7 | 0.22.1 |
⚠️ 插件版本必须与宿主线匹配:0.x 的依赖范围不跨 minor,一个构建只服务一条宿主线。仍在使用 0.2.1 线宿主的用户请继续固定 v0.28.2。
Match the plugin to your host line — one build serves one host line. Hosts still on the 0.2.1 line should keep pinning v0.28.2.
中文|本版修复
🎯 设置页「侧边卡片」那一行不再显示两个图标
现象:设置页左侧导航里,「侧边卡片」这一行同时画出插件自己的图标和系统默认的齿轮,两者并排。
原因:这个图标原本是用 CSS 把自己的图形盖在默认齿轮上(当年的宿主没有提供图标接口)。宿主后来给导航图标加了外层容器,同时提供了按页面挂图标的正式口子——遮盖规则因此不再命中,默认齿轮就露了出来。
现在:插件改用宿主提供的图标接口直接登记自己的图标,默认齿轮不会再渲染;那一套「按文字标记行 + CSS 遮盖」的实现随之删除,顺带也移除了一个监听整个页面的 DOM 观察器。
影响面:只影响设置页这一行的外观,没有其他行为变化。
🧪 质量
类型检查与全量单元测试通过,另外在真实 DSH 0.2.2 宿主上用无头浏览器确认该行只剩一个图标、无残留标记。
English|Fixed in v0.30.1
🎯 The "Side card" settings row no longer shows two icons
What you saw: in Settings, the "Side card" row painted both the plugin's own glyph and the shell's default gear side by side.
Why: that icon was drawn with CSS over the default gear, because the settings navigation had no icon channel back then. The shell later wrapped the nav icon in a container and exposed a proper per-section icon hook, so the CSS override stopped matching and the fallback gear reappeared.
Now: the row registers its icon through the shell's own icon hook, so the fallback gear never renders. The old "mark the row by label, then mask over it" machinery is gone, together with a document-wide DOM observer it needed.
Scope: the appearance of that one Settings row; nothing else changes.
🧪 Quality
Typecheck and the full unit suite pass, and a headless pass against a real DSH 0.2.2 host confirms the row renders exactly one icon with no leftover marker.
贡献者与致谢 / Contributors & thanks
维护者 @Menghuan1918 定位并修复了这处导航图标的渲染问题,完成验证与本版发布。也感谢把截图发来、让我们第一时间看到问题的使用者。
Maintainer @Menghuan1918 traced and fixed the navigation icon rendering, verified it against a real host, and shipped this release. Thanks also to the user whose screenshot surfaced it right away.
完整变更 / Full changelog:CHANGELOG.md · CHANGELOG_EN.md