dsh-better-memo 0.2.1 → 0.2.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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.2 — 2026-11-20
4
+
5
+ 只改编辑区尺寸(用户:编辑栏太小,尤其修改的时候,正文框宽度要翻三倍)。
6
+
7
+ - **改一条时整页放宽**:`.bm-page:has(.bm-edit)` 从 `min(720px,92vw)` 放到 `min(1760px,96vw)`,正文框可用宽从约 660px 变成约 1700px(窗口够宽时约 2.6–3 倍);宽度带 180ms 过渡,进出编辑不闪跳。收起编辑后自动回到 720px。
8
+ - **正文框加高**:编辑态 `min-height` 62 → **200px**、`rows` 3 → **8**;新增表单的正文框 62 → **120px**。
9
+ - 版本号 0.2.2(client 与 package 同步);宿主半边零改动。
10
+
3
11
  ## 0.2.1 — 2026-11-20
4
12
 
5
13
  视觉与手感修(用户:黑的看不清、UI 有点丑、点设置页外面也该收起)。
package/client.js CHANGED
@@ -33,7 +33,7 @@ window.__ModuleLoader__.load({
33
33
  const ReactDOMClient = require('react-dom/client');
34
34
 
35
35
  const NS = 'better-memo';
36
- const VERSION = '0.2.1';
36
+ const VERSION = '0.2.2';
37
37
  const SLOT = 'conversation.view';
38
38
  const SEAT_ID = 'better-memo-seat';
39
39
  const TOPBAR_SLOT = 'shell.overlay';
@@ -87,6 +87,10 @@ window.__ModuleLoader__.load({
87
87
  '.bm-input:focus{outline:none;border-color:var(--dsw-alias-accent,#3b82f6);box-shadow:0 0 0 3px rgba(47,111,237,.14)}',
88
88
  '.bm-select{font:inherit;font-size:13px;border-radius:8px;border:1px solid var(--dsw-alias-border-l3,rgba(15,23,42,.16));background:#fff;color:inherit;padding:6px 8px}',
89
89
  '.bm-textarea{resize:vertical;min-height:62px;line-height:19px}',
90
+ '.bm-form .bm-textarea{min-height:120px}',
91
+ // 改一条的时候正文框是主角:高 200px(原来 62),并且把整个页面撑宽到接近窗口
92
+ '.bm-edit{padding:2px 0 4px}',
93
+ '.bm-edit .bm-textarea{min-height:200px;font-size:13px}',
90
94
  '.bm-form-actions{display:flex;justify-content:flex-end;gap:8px}',
91
95
  '.bm-note{margin:0;font-size:11px;color:var(--dsw-alias-label-tertiary,#9aa0a6)}',
92
96
  '.bm-groups{display:flex;flex-direction:column;gap:18px}',
@@ -151,7 +155,7 @@ window.__ModuleLoader__.load({
151
155
  '.bm-card-toast{position:absolute;right:12px;bottom:12px;padding:7px 13px;border-radius:999px;background:var(--bm-accent);color:#fff;font-size:12px;line-height:1;box-shadow:0 8px 20px rgba(16,24,40,.22);animation:bm-fade-frames 120ms ease both}',
152
156
  /* ---- settings page ---- */
153
157
  '.bm-overlay-backdrop{position:fixed;inset:0;z-index:2147483200;display:flex;align-items:center;justify-content:center;background:rgba(16,24,40,.32);pointer-events:auto;-webkit-app-region:no-drag}',
154
- '.bm-page{display:flex;flex-direction:column;width:min(720px,92vw);height:min(80vh,80vh);max-height:80vh;border-radius:16px;border:1px solid var(--bm-line-2);background:var(--bm-surface);color:var(--bm-fg);box-shadow:0 24px 64px rgba(16,24,40,.22),0 4px 12px rgba(16,24,40,.10);overflow:hidden;animation:bm-enter-frames 200ms cubic-bezier(.22,1,.36,1) both}',
158
+ '.bm-page{display:flex;flex-direction:column;width:min(720px,92vw);height:min(80vh,80vh);max-height:80vh;border-radius:16px;border:1px solid var(--bm-line-2);background:var(--bm-surface);color:var(--bm-fg);box-shadow:0 24px 64px rgba(16,24,40,.22),0 4px 12px rgba(16,24,40,.10);overflow:hidden;transition:width 180ms cubic-bezier(.22,1,.36,1);animation:bm-enter-frames 200ms cubic-bezier(.22,1,.36,1) both}',
155
159
  '.bm-page-head{display:flex;align-items:center;gap:8px;padding:12px 14px;border-bottom:1px solid var(--bm-line)}',
156
160
  '.bm-page-back{font-size:12px}',
157
161
  '.bm-page-title{font-size:14px;font-weight:600;color:var(--bm-fg)}',
@@ -162,6 +166,8 @@ window.__ModuleLoader__.load({
162
166
  '.bm-switch input{cursor:pointer;margin:0}',
163
167
  '.bm-switch-error{font-size:11px;color:#d1242f}',
164
168
  '.bm-page-body{flex:1 1 auto;overflow:auto;min-height:0;background:var(--bm-surface)}',
169
+ // 只要页里有条正在编辑,就把整页放宽(720 → 近满宽),正文框随之从约 660px 到约 1700px
170
+ '.bm-page:has(.bm-edit){width:min(1760px,96vw)}',
165
171
  /* ---- keyframes ---- */
166
172
  '@keyframes bm-enter-frames{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}',
167
173
  '@keyframes bm-item-frames{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}',
@@ -693,7 +699,7 @@ window.__ModuleLoader__.load({
693
699
  h('textarea', {
694
700
  key: 'eb',
695
701
  className: 'bm-input bm-textarea',
696
- rows: 3,
702
+ rows: 8,
697
703
  maxLength: limits.body,
698
704
  placeholder: '要记住的事',
699
705
  value: editBody,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-better-memo",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "private": false,
5
5
  "description": "A popout memo card for DeepSeek Harness: top-bar capsule, one-line memos you copy with a click, three scopes (this session / this profile / you only) and agent tools to read and edit them. 浮窗备忘录:顶栏胶囊、点一条即复制、三档归属。",
6
6
  "type": "module",