dsh-settings-nav-scroll
开发工具 活跃维护

dsh-settings-nav-scroll

luxi233/dsh-settings-nav-scroll

轻量级前端扩展组件,支持为网页设置页导航栏添加溢出视口检测,当导航分区总高度超出当前视口时自动开启纵向滚动,无需手动配置即可适配不同尺寸屏幕的设置页使用。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
6 KB
仓库大小
3 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:luxi233/dsh-settings-nav-scroll
git clone https://github.com/luxi233/dsh-settings-nav-scroll.git
git clone git@github.com:luxi233/dsh-settings-nav-scroll.git
README.md main

DSH Settings Navigation Scroll

为 DSH Web 设置弹窗左侧导航增加纵向滚动能力。当安装的插件较多、设置分区超出视口时,导航栏会显示细滚动条,所有设置入口都可滚动访问。

Adds vertical scrolling to the left navigation of the DSH Web settings dialog. When installed plugins create more settings sections than fit in the viewport, every entry remains reachable through a visible scrollbar.

特点

  • 仅作用于 [role="dialog"] nav 中包含按钮的设置导航。
  • 使用宿主主题变量,兼容明暗主题。
  • 不修改 DSH 核心文件,停用或卸载插件后样式自动移除。
  • 同时支持 Chromium/WebKit 和 Firefox 的滚动条样式。

安装

dsh plugin --profile web add github:luxi233/dsh-settings-nav-scroll

安装后重启 DSH Web,并刷新浏览器页面。

Restart DSH Web after installation, then refresh the browser page.

验证

npm test
npm run check

卸载

dsh plugin --profile web remove dsh-settings-nav-scroll

License

MIT