dsh-plugin-orchd 0.1.2 → 0.1.3

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.
Files changed (2) hide show
  1. package/client/client.js +11 -2
  2. package/package.json +1 -1
package/client/client.js CHANGED
@@ -661,6 +661,15 @@ window.__ModuleLoader__.load({
661
661
  rowMeta: { display: 'flex', gap: 8, alignItems: 'center', fontSize: 11.5, color: TOKEN.labelTertiary, whiteSpace: 'nowrap', overflow: 'hidden' },
662
662
  statusTag: { display: 'inline-flex', alignItems: 'center', gap: 4, fontSize: 11.5, whiteSpace: 'nowrap' },
663
663
  note: { padding: '0 14px 8px', fontSize: 12, color: TOKEN.labelTertiary, flex: '0 0 auto' },
664
+ /**
665
+ * 行内提示(跟在按钮右侧的说明文字):必须能**收缩 + 换行**。
666
+ *
667
+ * 不能直接复用 note:note 是块级提示,带 flex: 0 0 auto;它作为 controlRow 的
668
+ * flex item 会拒绝收缩,文本按 max-content 撑出去——390px 侧栏里整句被右边界裁掉
669
+ * (用户实测:接入卡「让 agent 帮我接入」下方那行说明)。这里显式放开收缩,
670
+ * 允许在任意位置断行,宽度随面板大小自适应。
671
+ */
672
+ hint: { flex: '1 1 auto', minWidth: 0, padding: 0, fontSize: 12, color: TOKEN.labelTertiary, overflowWrap: 'anywhere' },
664
673
  // 右侧内边距避开自绘滚动条(轨道 right:2 + width:14 ⇒ 占最右 16px),否则文字被滑块压住
665
674
  detailBody: { padding: `0 ${SCROLLBAR_WIDTH + 10}px 14px 14px`, boxSizing: 'border-box' },
666
675
  /**
@@ -1519,7 +1528,7 @@ window.__ModuleLoader__.load({
1519
1528
  return load()
1520
1529
  }
1521
1530
  }, state === 'confirming' ? t('installCancel') : t('installAgent')),
1522
- React.createElement('span', { key: 'n', style: { ...styles.note, padding: 0 } },
1531
+ React.createElement('span', { key: 'n', style: styles.hint },
1523
1532
  unsupported ? t('installAgentUnavailable') : t('installAgentHint'))
1524
1533
  ])
1525
1534
 
@@ -3061,7 +3070,7 @@ window.__ModuleLoader__.load({
3061
3070
  ].filter(Boolean)),
3062
3071
  React.createElement('div', { key: 'export', style: { ...styles.controlRow, marginTop: 8 } }, [
3063
3072
  React.createElement(CopyButton, { key: 'c', text: diagnosticsSnapshot, t, label: t('exportDiag') }),
3064
- React.createElement('span', { key: 'h', style: { ...styles.note, padding: 0 } }, t('exportDiagHint'))
3073
+ React.createElement('span', { key: 'h', style: styles.hint }, t('exportDiagHint'))
3065
3074
  ]),
3066
3075
  data.detail === undefined ? null : React.createElement('pre', { key: 'detail', style: styles.pre }, JSON.stringify(data.detail, null, 2))
3067
3076
  ])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-plugin-orchd",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Read-only orchd panel for the DSH right sidebar: task board, dependency graph, ideas and review timeline for the project of the current session. · 把 orchd 项目状态带进 DSH 右侧栏的只读面板。",
5
5
  "license": "MIT",
6
6
  "repository": {