Commit Graph
13 Commits
Author SHA1 Message Date
qiqi 9ef5218856 perf: v3.26.152 简化卡片 hover 效果 + 可见空闲回收 2026-12-01 01:51:10 +08:00
qiqi 89bb19beab fix(gallery): 1.9.4 消除滚动加载时的闪动——卡片按宽高比占位 + 异步解码 + 加大预取
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 34s
闪动的来源:卡片初始只有「加载中…」那一行字的高度,缩略图一到就从一行字长成整图高,
整列跟着重排,滚动时看起来就是闪一下。

- itemNode:按 it.w/it.h 给卡片设 aspect-ratio,占位阶段就占好最终高度;有宽高时占位文案不写「加载中…」
- styles.css:占位层 absolute inset:0 铺满卡片(否则卡片高了、占位还是 84px 的小框)
- img 插入后调用 decode(),解码不占主线程
- 预取范围从 0.8/1.8 屏提到 1.2/2.4 屏,滚动时少触发几次窗口重排
2026-11-28 08:17:01 +08:00
qiqi bf15030799 perf(gallery): 1.8.3 拖动停靠栏时重排节流(宽度变化 <4px 不重排、合并到一帧)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 40s
用户反馈拖动图库面板很卡。原因是面板宽度的 ResizeObserver 每帧触发 renderGrid:整格 clear + 重建全部卡片、
重新挂事件、重新 paint 缩略图,一张卡就十来个 DOM 节点,几十张就是几百节点/帧。

改动(plugins/gallery/main.js + styles.css):
- measure():宽度变化不足 4px 不重排;重排用 requestAnimationFrame 合并,一帧最多一次
- 缩略图 img 加 decoding=async(解码移出主线程,减少拖动时的掉帧)
- .iwb-history-item 加 contain: layout style(把布局/样式计算限制在卡片内部)

试过「复用 DOM 节点(缓存卡片,重排只移动不重建)」但会让 e2e 里的图库面板加载失败,已回退,
先把节流 + contain + async decode 这组低风险优化发出去。
2026-11-28 02:02:42 +08:00
qiqi 7b43002f6b release: v3.26.88 图库落盘 P0(状态可见+一键补存) 2026-11-25 22:57:30 +08:00
qiqi a4c5ccad0e release: v3.26.85 动效 token + 下载浮层(图库/输出节点) 2026-11-25 22:44:45 +08:00
qiqi d7404fe720 chore(plugins): 同步 gallery 1.7.1(底栏三个图标加大)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 57s
- 刷新 / 打开本地目录 / 设置:SVG 14 → 18(--iwb-icon-lg),描边 1.6,
  按钮命中区 20×20 → 28×28,工具组 gap 0 → 4,设置浮层 bottom 34 → 40。
- 浮层层级按 §3.6 从裸 z-index:30 收进 --iwb-z-ctx-menu(91),过 token-lint。
- 市场包 gallery-1.7.1.zip、market 索引/首页、下载站索引与页面同步;
  公网回读版本 1.7.1 且 zip sha256 与索引一致。lint:tokens / test:tokens / test:facts 全过。
2026-11-25 14:16:36 +08:00
qiqi 8ef453b3b4 chore(plugins): gallery/grouplib 尺寸 token 迁移 + 插件尺度基线归零
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 56s
2026-11-23 20:15:45 +08:00
qiqi 6435d9e4c3 style(dock): 选中态 11%/悬停 4%;图库 1.6.4 首屏与边距 v3.26.16
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 1m8s
2026-11-21 23:23:22 +08:00
qiqi 318a7a2980 chore(plugin): 同步 gallery 1.6.2(图幅列宽上限)+ 布局回归 2026-11-20 15:02:47 +08:00
qiqi 440c4d6590 chore(plugin): 同步 gallery 1.6.1(移除搜索框) 2026-11-20 14:56:47 +08:00
qiqi f8ecb2cfba feat(plugin): 同步 gallery 1.6.0(搜索/失败统计/右键菜单/多选拖拽)+ 交互回归 2026-11-20 14:20:53 +08:00
qiqi bd138b7a7e chore(plugin): 同步 gallery 1.5.1 / grouplib 1.0.2 + 回归(胶囊滚动容器、.iwb-hint 作用域) 2026-11-20 13:32:00 +08:00
qiqi a4aaa547a7 feat(plugin): 目录插件支持自带 styles.css(sync 拷贝+manifest.style);gallery 1.5.0 上架 2026-11-20 12:59:09 +08:00