Introduction¶
The DeepSeek Harness (DSH) web interface typically employs a three-column layout: a left sidebar, a central main window, and a right sidebar. While the browser’s native full-page zoom scales all three columns simultaneously, scenarios often arise where one might need to clearly view terminal output in the sidebar, enlarge code in the center, and keep the right panel compact. Previously, this required repeatedly adjusting “Settings → General → Content Font Size” or resigning oneself to having a specific column unintentionally scaled along with the rest. The following introduces the community plugin @beyondandsharp/dsh-plugin-scaling: it allows for independent 1%–500% zoom levels for each column within the web shell, ensuring that adjustments in one area do not affect the others.
What is this?¶
Maintained by BeyondandSharp, categorized as a client-side plugin (platform: web). The npm package name is @beyondandsharp/dsh-plugin-scaling, currently at version 0.2.4, and is released under the MIT license. The plugin is implemented purely on the frontend: it does not modify the host and is not dependent on specific themes. Zoom ratios are stored within the plugin’s own localStorage entry; disabling it via “Settings → Plugins” completely restores native browser zoom behavior, leaving behind no residual attributes, styles, listeners, or notification bars.
Core Features¶
Independent Column Zoom. The left, center, and right columns each maintain their own multiplier ranging from 1%–500%. If the right panel is split into two sub-columns, each is treated as an independent column with its own zoom level.
Shortcuts and Feedback. Whenever a change occurs, a “Column Name + Percentage” indicator briefly appears in the bottom right corner. The step size adjusts dynamically based on the current value (always at least 1%): at 100%, one step is roughly 5%; below 20%, it is 1%; nearing 500%, it is approximately 25%. This facilitates rapid adjustment at both extremes.
Separate Diff Preview Zoom. Hovering over a “Modified Files” row in a session reveals a diff preview. When the pointer is over the preview, Ctrl / ⌘ + scroll wheel only zooms the diff content inside the card. The card’s border and position retain the host’s styling, and the three-column settings remain unaffected. The preview is temporary: zoom resets to zero when the pointer moves away or the card is closed, starting again at 100% on the next hover. The preview card cannot be focused; use Ctrl + scroll wheel (scrolling down) to reset the preview.
Relationship with Font Size Settings. The behavior is consistent with the official default appearance and most skins, utilizing only host design tokens. It acts multiplicatively with the “Settings → General → Content Font Size” value.
Fixed Center Top Bar. The top row of the center column (session title, view tabs, and the button to open the right panel) does not scale with the center column and is always rendered at 100%. Zoom only applies to the content below this row. When the pointer is over this row, Ctrl + scroll wheel is passed to the browser for full-page zooming.
Terminal Pointer Correction. When the sidebar terminal scales with the column, the plugin corrects pointer coordinates to prevent xterm.js drag-selection offsets under CSS zoom (verified on Firefox / Chromium for both zoom and transform).
Storage and Fallbacks. Settings are restored from the browser upon refresh or restart. If storage is unavailable (e.g., in Privacy Mode), it degrades to memory-only storage. Corrupted or out-of-range values are ignored per-item and clamped to the 1%–500% range.
Installation and Activation¶
The lib/ directory is committed to the repository, so no build step is required after installation. Simply refresh the page to use it.
# Local installation
dsh plugin --profile web add /root/dsh-plugin-scaling
# Install from npm
dsh plugin --profile web add @beyondandsharp/dsh-plugin-scaling
# Or install from git
dsh plugin --profile web add github:BeyondandSharp/dsh-plugin-scaling
The plugin runs on the browser side with the permissions of the current DSH process. It is recommended to review the GitHub Repository source code and LICENSE before installation.
Typical Usage¶
Place the pointer inside the column you wish to adjust and use the operations in the table below (replace Ctrl with ⌘ on macOS):
| Action | Effect |
|---|---|
Ctrl / ⌘ + Scroll Wheel |
Zoom the column under the pointer |
Ctrl / ⌘ + + / - |
Zoom the column in focus |
Ctrl / ⌘ + 0 |
Reset that column to 100% |
Persistent storage example (keys match the README):
localStorage['dsh.plugin-scaling.v1'] = {"left":1,"center":1,"right":1,"right-1":1}
right refers to the first column of the right panel, and right-1 refers to the second. To lock the zoom implementation mechanism, modify and refresh:
localStorage['dsh.plugin-scaling.mechanism'] = 'zoom' // or 'transform' / 'auto'
On Gecko (Firefox), the sidebar may use transform due to compatibility issues between zoom and border-image decorations; the center column always uses zoom on Gecko to ensure alignment between text selection and the pointer. For more detailed mechanism trade-offs, see docs/DESIGN.md in the repository.
Use Cases and Notes¶
Who it is for: Users who frequently view terminals, sessions, and toolbars side-by-side within the DSH web shell, and prefer to scale a specific column individually rather than scaling the entire page.
Keybinding Differences: In the web shell, Ctrl+± / Ctrl+0 are handled by the host shortcut service; Ctrl+= may be identified as a browser-reserved combination and cannot be registered. On the Electron desktop shell, these are registered as three commands that can be modified in “Settings → Shortcuts”.
Ecosystem Note: The DSH community plugin directory (such as the SkillHub Entry) is an independent site and has no official affiliation with DeepSeek or High-Flyer. Installation commands should follow the README; do not manually construct commands based solely on the package name.
Conclusion¶
dsh-plugin-scaling transforms the three columns of the DSH web interface (as well as right-panel splits and diff previews) into independently scalable areas. Values are persisted locally, and disabling the plugin immediately restores native behavior. For details, animated demos, and development notes, please refer to GitHub: BeyondandSharp/dsh-plugin-scaling and the directory page SkillHub.