Introduction

When using DeepSeek Harness or DSH Desktop, the readability of interface elements can sometimes be affected on high-resolution screens or with certain display settings. Browsers usually provide zoom functionality to adapt to visual needs, but DSH does not include this feature natively. The following introduces the dsh-ui-zoom plugin, which provides a consistent browser-style zoom experience in the client.

Plugin Overview

dsh-ui-zoom is a plugin that provides browser-style UI zoom for DeepSeek Harness and DSH Desktop.
* Author: imdeniil
* Category: Client
* License: MIT
* Core Value: Solves interface scaling issues and supports persistent zoom levels per source.

Core Features

The plugin provides full control of interface zoom through shortcuts and a small widget in the bottom-right corner:

  • Shortcut Zoom:
    • Ctrl + = / +: Zoom in
    • Ctrl + -: Zoom out
    • Ctrl + 0: Quickly reset to 100%
    • Ctrl + mouse wheel: Perform smooth zoom adjustment
  • Widget Control:
    • A semi-transparent widget in the bottom-right corner displays the current percentage.
    • Click the percentage number to reset to 100%.
    • Use the + / - buttons on the widget, with a step size of ±10% each time.
  • Range and Persistence:
    • Zoom range supports 50% - 200%, with a step size of 10%.
    • Zoom settings are persisted per source (browser URL or DSH Desktop window).

Installation and Activation

Installing this plugin requires executing the following commands, for Web and Desktop respectively:

dsh plugin --profile web add github:imdeniil/dsh-ui-zoom
dsh plugin --profile desktop add github:imdeniil/dsh-ui-zoom

Usage Examples

After installation, you can operate as follows:

  1. Basic Zoom: Press Ctrl + + to increase the interface zoom ratio.
  2. Fine Adjustment: Use Ctrl + mouse wheel for fine-tuning.
  3. Reset: Press Ctrl + 0 to reset the zoom to the default size, or click the percentage number on the bottom-right widget.
  4. Step Adjustment: Click the + or - button on the widget to change by 10% each time.

Technical Implementation and Notes

  • Implementation Approach: The plugin uses the CSS zoom property to implement zoom. This triggers layout recalculation, rather than transform clipping, so it does not affect the display of fixed panels.
  • Shortcut Priority: Shortcuts are intercepted in the capture phase, taking precedence over the browser’s default zoom behavior.
  • Language Support: The plugin UI supports multiple languages: Russian, English, and Chinese.

Conclusion

dsh-ui-zoom provides a lightweight zoom solution that effectively improves the display of the DSH interface at different resolutions. Through simple shortcuts and persistent settings, it can quickly adapt to development or runtime environments.

  • Project Address: https://github.com/imdeniil/dsh-ui-zoom