dsh-zoom-ui
A DeepSeek Harness (DSH) plugin that zooms the whole interface — sidebar, menus, settings, overlays and conversation — from the keyboard. Every chord press steps the zoom by 5% (50%–300%) and flashes a browser-style percentage pill in the top-right corner; the level is remembered across restarts.
Install
npm i dsh-zoom-ui
or in DSH: Settings → Plugins → Add plugin → dsh-zoom-ui
or from source: github:dlgrv/dsh-zoom-ui
Then add dsh-zoom-ui to dsh.profile.bundles in your profile's package.json and
restart DSH.
How it works
- Applies CSS
zoomto the root element — the only placement that scales the fixed-px chrome (sidebar, menus, settings) while keeping body-level overlays viewport-anchored. Chords:Cmd/Ctrl+=/-/0. - Flashes a percentage pill on every change, styled with the shell's own design
tokens (
--dsw-alias-*), counter-scaled by the active zoom so it keeps its visual size; startup restore does not flash. - Persists the level in
localStorage(dsh-zoom-ui:level) and restores it before first paint. - Compensates
100vh/100dvhoverlay rules with a generated stylesheet; the rules are guarded by class-name hashes, so a DSH update degrades the patch to a no-op instead of breaking layout.
The plugin changes nothing on the host side: no model requests, sessions, or tools are affected.
Compatibility
DSH 0.2.x (tested up to 0.2.2-rc.5).
Development
npm test
npm run lint
Uninstall
Toggle the bundle off on the Plugins page and remove the package. The interface returns to 100% after a restart.
Credits
Based on DC-507/dsh-zoom (MIT), forked and extended with 5% stepping, the percentage pill, lazy overlay patching and tests.
License
MIT
还没有评论,来写第一条。