dsh-settings-size: Adjust the Size of the DeepSeek Harness Settings Dialog

Introduction

The default size of the DeepSeek Harness (DSH) settings dialog is hardcoded to 800×800. On widescreen monitors, the left navigation bar occupies approximately 188px, making the right content area narrow. The dsh-settings-size plugin adds a control row in “Settings → General”, providing preset sizes and dual width/height sliders, supporting real-time preview and saving selections to the browser’s localStorage.

Core Features

This plugin primarily addresses the issue of the settings dialog feeling cramped on widescreen displays. Its specific capabilities include:

  1. Size Adjustment: Overrides the CSS styling of the DSH Web GUI settings dialog.
  2. Preset Sizes: Provides four preset levels: Standard, Large, Extra Large, and Fullscreen.
  3. Slider Fine-tuning: Supports bidirectional slider adjustment for both width and height.
  4. Real-time Preview: The dialog changes instantly as sliders are dragged, without needing to close and reopen.
  5. Local Persistence: Settings are saved in the browser’s localStorage under the key dsh-settings-size:size.

Installation and Activation

Add this repository path to the web profile:

dsh plugin --profile web add -w <repository_path>

After installation, restart the dsh web server to load the new bundle layer. After restarting, open Settings → General, and you will see a row for Settings Dialog Size below “Font Size”.

Usage

Preset Sizes

Preset Size Description
Standard 800 × 800 Default original size
Large 1080 × 900
Extra Large 1400 × 1080
Fullscreen 3000 × 2000 Intentionally exceeds screen size, clamped to viewport by min()

Slider Adjustment

Item Range
Width 640 – 3000 px
Height 560 – 2000 px

Other Features

  • Auto-shrink: Automatically narrows down if it exceeds the viewport to prevent overflow.
  • Browser Isolation: Settings are saved only in the current browser; clearing data or switching browsers will reset them.

Technical Details and Limitations

  • Scope of Effect: Only affects the Web GUI; TUI and Desktop profiles are unaffected.
  • DOM Dependency: Relies on the DOM structure of the settings dialog role="presentation" > role="dialog".
  • No Build Step: The plugin requires no compilation and reads lib/*.js files directly.
  • Persistence Method: Writes to localStorage, not Host settings.

Conclusion

This plugin solves the problem of the default DSH settings dialog appearing cramped on widescreens, providing a more comfortable visual experience through simple presets and sliders.

  • GitHub Repository: https://github.com/alexzshl/dsh-settings-size
  • Plugin Directory: https://www.skillhub.cn/plugins/alexzshl/dsh-settings-size
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye