返回目錄

dsh-ui-scale

編輯精選維護狀態: 活躍

juliankang4/dsh-ui-scale

為 DeepSeek Harness Web UI 和桌面應用提供 50%–200% 的介面縮放設定。

前往 GitHub
$ dsh plugin add dsh-ui-scale

安裝

dsh 沒有統一的安裝指令 —— 把該外掛 README(見下方)中的設定行加入你的 profile / patch 設定,然後重啟即可。

查看安裝教學

1

星數

0

Fork

TypeScript

語言

MIT

授權條款

2026-10-04

建立於

2026-10-17

最近推送

README

dsh-ui-scale

Make the DeepSeek Harness interface larger or smaller, from 50% to 200%. Works in the browser (dsh web) and in the Desktop app.

Install

dsh plugin --profile web add dsh-ui-scale

In the Desktop app, open Plugins, choose Add plugin, enter dsh-ui-scale and install it.

Use

Open Settings > General > Interface scale. There are three ways to set the scale:

  • Drag the slider. It moves in 5% steps and applies the scale when you release it.
  • Type a percent in the field and press Enter or click elsewhere. The value is rounded to a whole percent, and a value below 50 or above 200 is set to the nearest limit.
  • Click a preset: 100, 110, 125, 150, 175 or 200%.

The scale is saved in the profile configuration. It survives restarts and is applied before the main window appears. Each profile (web, desktop) keeps its own value, and every browser signed in to the same profile shares it. In dsh 0.2.0 a page opened from another computer can change the scale only for itself until it reloads, because that version does not save settings from such pages.

What scales

Everything in the window: sidebars, conversation, composer, pages, Settings and other dialogs, and the menus, tooltips and pop-ups attached to them. The layout behaves as it would under browser zoom: at a high scale in a small window the left sidebar collapses, panels keep their share of the window, and dragging a divider follows the pointer.

The Desktop app's native menus and window controls keep their normal size.

Desktop window size

The Desktop app opens its window at the same default size on every start. With this plugin enabled it opens at the size and position you left it in. The window is not resized past the screen, and a position on another display is not restored, so the window opens on the main display at the saved size. Full screen is not saved.

Limits

The plugin applies CSS zoom and converts what the page measures to the zoomed scale: element positions and sizes, the window and page viewport size, pointer positions, SVG screen matrices, wheel deltas, media queries (widths and resolutions) in style sheets and matchMedia, and the viewport units in style sheets and inline styles. Some things fall outside that conversion:

  • A viewport size (vw, vh) in a style rule added from script with insertRule, in a constructed style sheet added with adoptedStyleSheets.push instead of assignment, inside a shadow root, or on a MathML element is not converted. Such an element can come out larger than the window.
  • IntersectionObserver rectangles and touch coordinates still use the real window size.
  • A size measured in the same script step that sets an inline viewport size or adds a style element still sees the unconverted value; the next step sees the converted one.
  • Every script on the page sees the converted values, including other plugins. The one exception is the Desktop account Usage and Top up area, whose position and size read in window pixels so the app can place those pages.
  • A PDF that is already open keeps its sharpness from before a scale change until it is reloaded, opened again or zoomed in the preview.

In a browser you can also use the browser's own zoom; the two multiply.

Configuration

Field Default Description
scale 100 Interface scale in percent, a whole number from 50 to 200.

The settings row writes this field. You can also set it in the profile's cordis.patch.yml:

- id: ui-scale
  name: dsh-ui-scale
  config:
    scale: 125

Development

Use Node.js 24. Install dependencies with npm ci. Run npm run check for formatting, lint, JavaScript syntax and strict TypeScript checks. Run npm test to build and test the shipped bundle.

Type suppressions must use @ts-expect-error: <reason>. Inline lint suppressions must name one rule: biome-ignore lint/<group>/<rule>: <reason>. Blanket and file-wide lint suppressions are rejected. Non-null assertions remain allowed where TypeScript cannot follow an existing guard. The npm-generated lockfile is not reformatted.

Pull requests and pushes to main run the same check and test commands. The CI passed summary succeeds only when both jobs succeed; failed, cancelled and skipped jobs fail the summary.

Tested with dsh 0.2.1-rc.2 (web in Chrome and the macOS Desktop app) and dsh 0.2.0-rc.2 (web in Chrome).

廣告

DSH Plugins 是獨立的 DeepSeek Harness 外掛市集,與 DeepSeek 官方無關,也不代表官方背書。第三方外掛未經安全稽核,安裝前請審查原始碼。

每週取得最新的 DeepSeek Harness 外掛,絕不濫發。