Introduction¶
In DSH (DeepSeek Harness), the default view density of the left-side session list, panel entries, and the plugin page is determined by the host. When sessions multiply, the default single-column layout takes up too much screen space; yet switching to a two-column layout to save space often leaves titles cramped and hard to read. At the same time, the action buttons on session rows (star, more, archive, pin) are prone to accidental taps in two-column mode. Existing view-switching solutions are either not granular enough or lack a dedicated settings entry point.
The dsh-sidebar-view-density plugin provides three independent property sets to control the layout of the session list, panel entries, and plugin page respectively, offering detailed list, single-column, two-column, and custom column count with spacing. It writes independent localStorage keys for each area, supports per-area adjustments of column count, row height, and vertical/horizontal spacing in the settings page, and provides two interaction modes for session row buttons: hover-triggered and delayed display.
Plugin Overview¶
- Name: dsh-sidebar-view-density
- Maintainer: yz-china
- Category: Client
- Core Value: Provides independently configurable view density for the DSH sidebar, panels, and plugin page, solving issues of crowded session lists, accidental button taps, and inflexible layouts.
Three Independent View Property Sets¶
The plugin registers a set of DOM attributes for each of the three areas; modifying one does not affect the others:
data-dsh-view-density: the session list in the left sidebardata-dsh-view-panel-density: panel entries in the left sidebar (Purge / Skill Center / Memory System / Free Search / IG5 / More)data-dsh-view-plugin-density: the plugin page (installed cards, plugin rows, marketplace cards)
Each area has its own presets and custom settings. Changing the session list does not affect the plugin page, and vice versa.
Four View Presets¶
| Preset | Columns | Row Height / Icon / Font Size / Spacing |
|---|---|---|
| detail | 1 | Host native (32 / 16 / 14 / 2) |
| column1 | 1 | 44 / 18 / 14 / 6 |
| column2 | 2 | 44 / 18 / 13 / 6 |
| custom | 1–6 (slider) | 44 / 18 / 13 / 6, with independently adjustable vertical and horizontal spacing |
The menu does not list a “Custom” row directly; instead, a column-count slider is used: dragging it switches to custom mode and updates the column count in real time. Vertical and horizontal spacing are adjusted in the settings.
Custom mode is driven by CSS custom properties on the root, with independently named prefixes for each area:
- Session list:
--dsh-view-* - Panels:
--dsh-panel-* - Plugin page:
--dsh-plugin-*
Each prefix includes four variables:
-cols: column count, 1–6-rowheight: row height per line, 12–96px-rowgap: vertical spacing, 0–24px-colgap: horizontal spacing, 0–24px
Custom Settings Entry¶
Settings → Sidebar View (the settings.section registered by the plugin): one group each for the session list / panels / plugin page, with four sliders per group (column count / row height / vertical spacing / horizontal spacing).
The context menu also directly provides “Column Count” and “Row Height” sliders; dragging either switches to custom mode immediately.
Each area’s state is persisted under three keys in localStorage['dsh-sidebar-view-density:custom']: session, panels, plugins.
Persistence¶
The plugin uses the following localStorage keys:
localStorage['dsh-sidebar-view-density']: session list presetlocalStorage['dsh-sidebar-view-density:panels']: panel presetlocalStorage['dsh-sidebar-view-density:plugins']: plugin page presetlocalStorage['dsh-sidebar-view-density:custom']: custom configuration object (containing the three keys: session / panels / plugins)
Session Row Action Button Behavior¶
The host defaults the four buttons (star, more, archive, pin) to display:none and changes them to inline-flex on hover. In two-column narrow cells, they appear within a single frame and occupy title width, causing the cursor to land on the buttons.
Settings → Sidebar View → Session Action Buttons — choose one of two, written to localStorage['dsh-sidebar-view-density:actions']:
- Hover above the session (default): buttons use
position:absoluteand float at the right side of the row, not participating in layout, not squeezing the title width. - Show after 3-second hover: buttons remain
inline-flex, butopacity/visibilityis delayed by 3000ms to appear; they hide immediately on mouse leave.
Both modes only take effect under non-“detail” presets (selectors are prefixed with html[data-dsh-view-density]), apply only to session rows, and do not affect the workspace header or the plugin page action bar.
Known Trade-offs and Limitations¶
- In two-column / custom mode, the third column of session rows (timestamp) is hidden; otherwise labels would be squeezed out of visibility.
- Plugin page
.cardelements carry a built-inmargin:0 -8pxhover overflow that, once placed in a grid, pushes content beyond the panel bounds. The plugin neutralizes this with a CSS rule. - The row-height slider lower bound is approximately 24px (12–96px in custom mode; values below ~16px will clip inline text).
Installation & Activation¶
Navigate to the plugin’s directory:
cd $env:USERPROFILE\.dsh\profiles\<profile>
Install using pnpm:
pnpm add "file:./plugins/dsh-sidebar-view-density"
After installation, you must reload the interface: Application Menu → Reload Interface (F5 is already bound by this plugin in the renderer process; native-layer patches require a full quit and restart).
Use Cases & Notes¶
- Suitable for users who frequently switch between single-column, two-column, and custom layouts, or who need fine-grained control over session list, panel, and plugin page layouts.
- The plugin runs with the current DSH process privileges. Review the source code and license before installing.
- In custom mode, the row height range is 12–96px. Below approximately 16px, inline text will be clipped — this is expected behavior.
Summary¶
dsh-sidebar-view-density provides flexible view density control for the DSH sidebar, panels, and plugin page through three independent property sets, four view presets, and custom sliders. It returns layout control from the host to the user and resolves issues such as accidental button taps and label squeezing in two-column mode.
- Catalog page: https://www.skillhub.cn/plugins/yz-china/dsh-sidebar-view-density
- GitHub: https://github.com/yz-china/dsh-sidebar-view-density