@ash-qw/dsh-theme-prts 2.5.1 → 2.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ash-qw/dsh-theme-prts",
3
- "version": "2.5.1",
3
+ "version": "2.5.2",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Unofficial Arknights P.R.T.S.-inspired UI theme for DeepSeek Harness Web and the official desktop client",
@@ -104,8 +104,11 @@ function markSidebarNode(node, attribute, next) {
104
104
  function resolveRowControls(row, kind) {
105
105
  const menu = row.querySelector(':scope > span > span > button[type="button"]')
106
106
  const anchor = menu?.parentElement
107
- const actions = anchor?.parentElement
108
- if (!menu || !anchor || actions?.parentElement !== row) return {}
107
+ // Ungrouped workspaces have a create button but no management menu.
108
+ const actions = anchor?.parentElement ?? (kind === 'workspace'
109
+ ? Array.from(row.children).find(node => node.matches('span') && node.querySelector(':scope > button[type="button"]'))
110
+ : undefined)
111
+ if (actions?.parentElement !== row) return {}
109
112
  const create = kind === 'workspace'
110
113
  ? actions.querySelector(':scope > button[type="button"]')
111
114
  : undefined
@@ -345,6 +345,12 @@ html[data-dsh-prts] [data-prts-settings-section="background"] [data-prts-backgro
345
345
  [data-prts-composer-glass-setting], [data-prts-composer-glass-required] { display: block; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--prts-line); }
346
346
  [data-prts-composer-glass-required] { font-size: 12px; color: var(--prts-muted); }
347
347
 
348
+ /* Pending questions, approvals and plan reviews replace the glass composer.
349
+ * Keep its full-width seat clear even while no glass card is mounted. */
350
+ html[data-dsh-prts]:is([data-prts-background-mode="full"][data-prts-background-full],[data-prts-background-mode="split"][data-prts-background-conversation]) [data-composer-seat] {
351
+ background: transparent !important;
352
+ }
353
+
348
354
  /* The native active composer fades into DSH's base color. Baker paints a
349
355
  * different solid backdrop, so match that backdrop while keeping the fade. */
350
356
  html[data-dsh-prts][data-prts-conversation-style="deck-chat"][data-prts-background-mode="off"] [data-phase="active"] [data-composer-seat]:not(:has([data-prts-composer-glass-active])) {
@@ -32,20 +32,12 @@ html[data-dsh-prts] [data-prts-region="sessions"] [data-slot="sidebar.settings"]
32
32
  color: var(--prts-ink) !important;
33
33
  }
34
34
 
35
- /* Workspace hierarchy: remove only the folder glyph and retain the disclosure control. */
36
- html[data-dsh-prts] [data-prts-workspace-icon] {
37
- display: none !important;
38
- }
39
-
35
+ /* Keep native folder/chevron visibility and active color; align their shared seat. */
36
+ html[data-dsh-prts] [data-prts-workspace-icon],
40
37
  html[data-dsh-prts] [data-prts-workspace-disclosure] {
41
38
  position: relative;
42
39
  z-index: 4;
43
- width: 14px;
44
- flex: 0 0 14px;
45
- display: grid;
46
- place-items: center;
47
40
  margin-left: calc(var(--prts-spine-width) + 4px);
48
- color: var(--prts-muted);
49
41
  transform: translate3d(var(--prts-row-shift), 0, 0);
50
42
  transition: transform 220ms var(--prts-ease-spring), color 160ms ease;
51
43
  }
@@ -97,6 +89,10 @@ html[data-dsh-prts] [data-prts-workspace-actions] {
97
89
  width: 57px !important;
98
90
  }
99
91
 
92
+ html[data-dsh-prts] [data-prts-workspace-actions]:has(> [data-prts-workspace-create]:only-child) {
93
+ width: 28px !important;
94
+ }
95
+
100
96
  html[data-dsh-prts] [data-prts-session-actions] {
101
97
  width: auto !important;
102
98
  }