在 DeepSeek Harness Web UI 中,會話詳情頁通常被限制在固定 748px 的內容列中。在寬顯示器上,這會留下不必要的空白。dsh-widescreen 通過在設置中添加一個開關來解決這個問題,允許會話詳情頁填滿中心列的可用寬度。
核心功能¶
- 設置開關:在 Settings → General(設置 → 通用設置)中添加了 Widescreen mode(寬屏模式)開關。
- 全寬內容:當開啓時,聊天列、日期分隔符、問題卡片和作曲家卡片擴展以填滿中心列的寬度。
- 默認兼容:當關閉時,行爲與默認字節對齊(748px 內容列)。
- 容器相對尺寸:僅使用容器相對尺寸(
--dsh-chat-content-width: 100%)。瀏覽器縮放和窗口調整會保持原有的響應式重排。 - 持久化:偏好保存在 DSH 用戶設置文檔中,在頁面刷新和重啓後保持不變。
- 完全可逆:移除插件會恢復默認佈局。
安裝與啓用¶
需要 DSH 0.1.0-rc.x(Web 配置文件)。
- 使用官方插件命令安裝:
dsh plugin --profile web add github:Temoa/dsh-widescreen
- 重啓
dsh --profile web。 - 打開 Settings → General 並切換 Widescreen mode 開關。
卸載¶
要恢復默認的 748px 佈局,請運行:
dsh plugin --profile web remove dsh-widescreen
重啓 dsh --profile web。
技術實現¶
- 無構建步驟:倉庫在
lib/中包含預構建的工件,因此沒有prepare授權或構建腳本。 - 客戶端格式:客戶端包直接使用官方
window.__ModuleLoader__.load({ id, factory })格式編寫。 - 設置集成:通用設置行註冊到
settings.general.item槽(順序 30,位於外觀和作曲家回車之後)。
目錄與源碼¶
- 倉庫:github.com/Temoa/dsh-widescreen
- 許可證:MIT