Commit Graph
2 Commits
Author SHA1 Message Date
qiqi c313a11f3e fix(plugin): 移除便利贴的停靠栏面板,版本升至 1.0.9
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 49s
便利贴是纯画布节点(plugin:sticky:sticky),不需要边栏面板 —— 面板里的「插入便利贴 /
列表 / 定位」与节点本身重复,且此前被误用作 side 偏好的验证对象。

改动:
- 删除整段面板实现(registerPanel / mountPanel / refreshList / insertNote / ctxForPanel / noteList,85 行)
- capabilities: ['panels','nodeTypes','canvas'] → ['nodeTypes','canvas']
- 版本 1.0.8 → 1.0.9(能力面变更,需高于外部已装副本才会覆盖)
- plugins/index.json 同步 version 与 SRI integrity(已校验哈希一致)

节点类型注册不受影响(渲染 / 高度 / 端口配置原样保留)。
验证:npm run verify:ci 全绿(含 e2e 冒烟 31 条)。
2026-11-27 08:51:22 +08:00
qiqi f3c16803a3 fix(plugin): sticky 1.0.8 便利贴宽度变化后不算高度(文字下面多一行空白)
fitBody 的高度缓存只比 text/fontSize:宿主拖宽节点、侧栏开合、首帧 clientWidth=0
时都会沿用旧行数的高度,文字少一行时正好空出一整行;scrollHeight 的取整误差还会叠半行。
现在把 clientWidth 纳入缓存键、高度按「行高 × 整数行 + padding」对齐,并加 ResizeObserver。

源仓 iwb-plugins-desktop sticky/src/index.js + 契约测试 harness 两条新断言;
本仓 artifacts 由 scripts/sync-plugins-from-repo.js 生成(内容寻址 + SRI)。
2026-11-26 12:46:02 +08:00