cx2002302-lang/dsh-chat-collapse ↗★ 0

dsh-chat-collapse

在输入框工具行添加一键收缩与还原按钮 适合需要临时腾出屏幕空间、专注于阅读历史消息或长文本的用户。

套件
dsh-chat-collapse
相容性
待驗證
Cordis 依賴範圍
^4.0.1
版本
0.1.0
授權
MIT
最近更新
2026年9月23日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:cx2002302-lang/dsh-chat-collapse

改配置

默认值都在 lib/client.js 顶部的 DEFAULTS:collapsed / target / anchor / ball。

  • anchor: 'toolRow'(默认)按钮进工具行;改成 'corner' 则贴输入框卡片右上角。
  • ball: 'br' | 'bl' | 'tr' | 'tl' 恢复球落点,默认右下。 底边两档的 bottom = BALL_INSET(20) + BALL_SIZE(44)/2 = 42px —— 比基准抬高半个球高, 避开收起后右下角本来就有的常驻控件;要再挪改这两个常量即可。