Repository navigation
Releases: sjrslh/dsh-ui-zoom
Releases · sjrslh/dsh-ui-zoom
Release list
v0.4.4 · 包体瘦身
v0.4.3 · 首个 OIDC 发布
本次
- 第一个通过 Trusted Publishing(GitHub Actions OIDC)发布的版本,没有任何 npm token 参与
- npm 上带 SLSA Provenance:
https://registry.npmjs.org/-/npm/v1/attestations/dsh-ui-zoom@0.4.3
安装
dsh plugin --profile desktop add dsh-ui-zoom- 离线:下载下方
dsh-ui-zoom-0.4.3.tgz
v0.4.2
v0.4.1 · npm 首发
新增
- 首次发布到 npm:
dsh plugin --profile web add dsh-ui-zoom现在可用 package.json补repository/homepage/bugs,npm 页面能正常解析相对图片- README 的演示 GIF 改用绝对地址,npm 与 GitHub 都能显示
安装
- npm:
dsh plugin --profile desktop add dsh-ui-zoom - 离线:下载下方
dsh-ui-zoom-0.4.1.tgz
v0.4.0 · 蓝色小鲸鱼的缩放插件
新增
Ctrl+=/Ctrl+-快捷键,和Ctrl+0、Ctrl+ 滚轮同一套节流与边界- 打包产物
dsh-ui-zoom-0.4.0.tgz,可以离线安装:dsh plugin --profile desktop add ./dsh-ui-zoom-0.4.0.tgz
文档
- README 重写:功能特性、和其他缩放方案的对比、四种安装方式与选择建议、常见问题
- 新增英文说明
README.en.md与CHANGELOG.md
说明
- 缩放逻辑与 v0.3.2 一致,没有行为变更
- 安装:
dsh plugin --profile desktop add github:sjrslh/dsh-ui-zoom
v0.3.2
修复
- 缩放后把消息列表滚到底、继续滚会把整个 DSH 界面推走 / 上移。
zoom作用在<html>上会放大根盒子,文档因此多出一截可滚动区;内层列表触底后滚轮链到文档滚动器。现在缩放期间锁住根滚动,100% 时把<html>/<body>原来的内联样式原样还原,应用自己的滚动容器不受影响。
改进
getBoundingClientRect()的垫片返回真正的DOMRect(之前是普通对象,instanceof DOMRect会失败)。- 取 getter 时沿原型链查找,描述符不在对象自身时也能打上垫片。
- 新增
scripts/zoom.test.mjs:覆盖 150% 下的 innerWidth / innerHeight / clientWidth / clientHeight / getBoundingClientRect / clientX,以及停用插件后样式与度量完整还原。
安装:dsh plugin --profile web add github:sjrslh/dsh-ui-zoom
v0.3.1
修复
- 缩放后,内层列表滚到底部再继续滚动时,整个 DSH 界面会被推走 / 上移。
原因:zoom作用在<html>上会把根盒子按比例放大,文档因此多出一截可滚动区域;内层滚到底后滚轮链到文档滚动器。
现在缩放期间锁住根滚动(html { overflow: hidden }+overscroll-behavior: none),100% 时释放;应用内部的滚动不受影响。
安装:dsh plugin --profile web add github:sjrslh/dsh-ui-zoom
v0.3.0
Layout-consistent zoom.
- Zoom stays renderer-only: CSS
zoomon<html>plus a metric shim that divides the values DSH lays out with —window.innerWidth/innerHeight,Element.clientWidth/clientHeight,getBoundingClientRect(),MouseEvent.clientX/clientY— by the zoom factor. - That keeps the composer, model picker and reasoning-effort menus in place from 60% to 180%; the shim is removed at 100%.
Ctrl+0 resets, the level is remembered inlocalStorage.- No host route and no Electron API, so it works in the desktop app and in plain
dsh web.
Install:
dsh plugin --profile web add github:sjrslh/dsh-ui-zoomv0.2.0
Native zoom.
- Zoom now goes through Electron's
webContents.setZoomFactorvia the host route/dsh-ui-zoom/zoom. - CSS
zoomis gone: it pushed the composer, model picker and reasoning-effort panel outside the viewport above 100%. - Plain
dsh webreportssupported:falseand leavesCtrl+wheel to the browser. - 60%–180%, 10% per step,
Ctrl+0 resets, the level is remembered.
Install:
dsh plugin --profile web add github:sjrslh/dsh-ui-zoom