DSH HUB
首页插件商店插件包社区排行榜资源发布指南
插件源码
返回插件目录

wanglaixiang-cyber /

wanglaixiang-cyber/dsh-composer-scroll-hide

已验证

DSH plugin: composer auto-hide on scroll, follows the message flow and tracks the back-to-bottom float

★ 0 Stars0 Forks0 IssuesN/A 社区评分0 已确认安装
查看 GitHub
README来源: main@203a3a64

dsh-composer-scroll-hide

A DSH browser-side plugin that makes the composer follow the message flow while scrolling.

Features

  • Scroll up: the input bar slides off-screen at the same speed as the content, so it never covers the history you are reading
  • Browsing history: while paging down through history, the input bar stays hidden — it never pops in early
  • Back to latest: the input bar only rides back in over the final stretch of the return to the latest message (about one composer height), settling fully at the bottom
  • Float tracking: the app's "back to bottom" float button moves together with the input bar and lands 16px above the bottom edge once the bar is fully hidden

Install

dshpm install github:wanglaixiang-cyber/dsh-composer-scroll-hide --profile <profile-name>

Development

For local development, link the package into a profile:

"dsh-composer-scroll-hide": "link:/path/to/dsh-composer-scroll-hide"

Edits to lib/client.js are picked up by client-hmr within about a second — no page refresh, no restart.

How it works (short)

  • Listens to scroll events on the [data-conversation-scroll] scrollport (passive — never blocks scrolling)
  • Composer offset = min(distance to bottom, composer height): position-driven, so any state (re-attach, jump, resize) converges on the next scroll
  • Syncs the --dsh-composer-height custom property, which drives the back-to-bottom float's clearance so the float tracks the bar
  • The seat height is cached via ResizeObserver; the transform is written at most once per frame (requestAnimationFrame)

License

MIT

—/ 5

暂无评分

已验证 DSH bundle

Commit 203a3a648d64

社区评论

还没有评论,来写第一条。

DSH HUB

社区维护的 DSH 插件索引。不是 GitHub 或 DeepSeek AI 的官方产品。

社区资源API关于