diff --git a/CHANGELOG.md b/CHANGELOG.md index 2076f43..aa46284 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,13 @@ - 历史条目补录:该 tag 当时未在 CHANGELOG 记录(release-records 守卫要求 tag 与条目双向一致),内容按当时提交补一句占位说明。 +## v3.26.237(2026-12-03)任务队列页头/页签固定、页脚不再被压 + +- 插件根节点改为占满整页高度(`.iwb-tq{height:100%}`),宿主不再整页滚动;只有列表自己滚。 +- 列表加 overflow-y:auto:修「行内容溢出压在页脚说明上」与「页头/筛选页签随列表滚走」。 +- 任务队列预览取源改「原图优先」:老记录(无 origIdb)不再被 320 缩略图放大,改为原图链接优先、缩略图只兜底。 +- 插件 taskqueue 1.0.3。 + ## v3.26.236(2026-12-03)顶栏标签条彻底固定 - 工作区标签条 portal 到 body + position:fixed,脱离 overlay 的滚动/层叠;插件页改 position:fixed。 diff --git a/app.js b/app.js index 62544ad..a4cea6a 100644 --- a/app.js +++ b/app.js @@ -8353,12 +8353,12 @@ const tbCenterSeed = (type, refs) => { for (const x of all) { const row = idxNow.find((f) => f && String(f.url) === String(x.url)) const thumb = wQueueThumbCache.get(x.url) || '' - let url = x.url + let url = (x.id === id) ? '' : x.url if (x.id === id) { - // 当前这张优先用图库原图/缩略图,避免会话级 localUrl 失效导致预览破图 - if (row && row.origIdb) { try { const o = await IDB.get(row.origIdb); if (o) url = o } catch (e) { /* ignore */ } } - else if (row && row.idb) { try { const t = await IDB.get(row.idb); if (t) url = t } catch (e) { /* ignore */ } } - else { const v = qView(x.url); if (v && v.localUrl) url = v.localUrl } + // 2026-12-03:老记录没有 origIdb,上一版先取 idb(320 缩略图)⇒ 全屏预览被放大发糊;改回原图优先、缩略图只兜底 + if (row && row.origIdb) { try { url = (await IDB.get(row.origIdb)) || '' } catch (e) { /* ignore */ } } + if (!url) { const v = qView(x.url); url = /^https?:/i.test(String(x.url || '')) ? x.url : ((v && v.localUrl) || String(x.url || '')) } + if (!url && row && row.idb) { try { url = (await IDB.get(row.idb)) || '' } catch (e) { /* ignore */ } } } list.push({ url, thumb: thumb || undefined, w: Number(x.w) || 0, h: Number(x.h) || 0, name: String((x.meta && (x.meta.promptText || x.meta.prompt)) || '') }) } diff --git a/package.json b/package.json index c159d85..9178a1c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "image-workbench-web", "private": true, - "version": "3.26.236", + "version": "3.26.237", "description": "Browser-based node canvas image workbench", "scripts": { "build": "node scripts/build.js && node scripts/copy-plugins.js", diff --git a/plugins/index.json b/plugins/index.json index 4f8f622..d42d0d2 100644 --- a/plugins/index.json +++ b/plugins/index.json @@ -102,10 +102,10 @@ "dir": "taskqueue", "main": "main.js", "style": "styles.css", - "version": "1.0.2", + "version": "1.0.3", "files": { - "main.js": "7fcefb26d1f5126f3f90e086bc6c36903083f4366b38c0d8b0c9cc10dfb86ee1", - "styles.css": "420ed2b5ce4dec2f054c2cbecc2f055868fa29e5583c6a364ef82ddefb227262" + "main.js": "5f08181338062c9327f22e742be7e1e161a32d2e1bc41ae775a73e0e15b9f3a9", + "styles.css": "4de612a1d25cb74a76f1888fdde32c0f617cc6ab5cc1a0f0bd6ff1adccc757e4" } } ] diff --git a/plugins/taskqueue/main.js b/plugins/taskqueue/main.js index 6197649..3823519 100644 --- a/plugins/taskqueue/main.js +++ b/plugins/taskqueue/main.js @@ -87,6 +87,8 @@ } var list = el('div', { class: 'iwb-tq-list' }) var foot = el('div', { class: 'iwb-tq-foot' }) + // 2026-12-03:整页高度由宿主给满(.iwb-tq{height:100%}),只有列表自己滚; + // 页头/页签/底部说明全程不动,也不会再出现列表撑出容器压住底部说明。 append(host, [head, tabs, list, foot]) function setMsg (m) { state.msg = m || ''; renderFoot() } @@ -232,7 +234,7 @@ global.IWBPluginHost.register({ id: 'taskqueue', name: '任务队列', - version: '1.0.2', + version: '1.0.3', apiVersion: 1, capabilities: ['pages', 'queue'], }, function (ctx) { diff --git a/plugins/taskqueue/manifest.json b/plugins/taskqueue/manifest.json index 7a81a8c..81bb7e4 100644 --- a/plugins/taskqueue/manifest.json +++ b/plugins/taskqueue/manifest.json @@ -1,7 +1,7 @@ { "id": "taskqueue", "name": "任务队列", - "version": "1.0.2", + "version": "1.0.3", "apiVersion": 1, "main": "main.js", "style": "styles.css", @@ -13,7 +13,7 @@ "记录" ], "files": { - "main.js": "7fcefb26d1f5126f3f90e086bc6c36903083f4366b38c0d8b0c9cc10dfb86ee1", - "styles.css": "420ed2b5ce4dec2f054c2cbecc2f055868fa29e5583c6a364ef82ddefb227262" + "main.js": "5f08181338062c9327f22e742be7e1e161a32d2e1bc41ae775a73e0e15b9f3a9", + "styles.css": "4de612a1d25cb74a76f1888fdde32c0f617cc6ab5cc1a0f0bd6ff1adccc757e4" } } diff --git a/plugins/taskqueue/styles.css b/plugins/taskqueue/styles.css index 328e912..4e0237c 100644 --- a/plugins/taskqueue/styles.css +++ b/plugins/taskqueue/styles.css @@ -1,5 +1,5 @@ /* 任务队列页(插件)—— 颜色/字号/圆角/间距全部走宿主 token;结构尺寸允许字面量。 */ -.iwb-tq { display: flex; flex-direction: column; min-height: 0; gap: var(--iwb-space-10); } +.iwb-tq { display: flex; flex-direction: column; height: 100%; min-height: 0; gap: var(--iwb-space-10); } .iwb-tq-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--iwb-space-16); flex-wrap: nowrap; } .iwb-tq-sub { color: var(--iwb-text2); font-size: var(--iwb-font-sm); } .iwb-tq-tools { display: flex; align-items: center; gap: var(--iwb-space-8); flex: 0 0 auto; flex-wrap: nowrap; } @@ -12,7 +12,7 @@ .iwb-tq-tab.on { color: var(--iwb-accent-on-surface); background: var(--iwb-accent-tint); } .iwb-tq-n { font-size: var(--iwb-font-2xs); line-height: 15px; padding: 0 var(--iwb-space-6); border-radius: var(--iwb-radius-full); border: 1px solid var(--iwb-border); color: var(--iwb-text2); } .iwb-tq-tab.on .iwb-tq-n { border-color: var(--iwb-accent-on-surface); color: var(--iwb-accent-on-surface); background: transparent; } -.iwb-tq-list { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: var(--iwb-space-8); } +.iwb-tq-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 2px; display: flex; flex-direction: column; gap: var(--iwb-space-8); } .iwb-tq-row { display: grid; grid-template-columns: 96px minmax(0,1fr) auto; gap: var(--iwb-space-12); align-items: center; padding: var(--iwb-space-10); background: var(--iwb-panel); border: 1px solid var(--iwb-border); border-radius: var(--iwb-radius-card); } .iwb-tq-row:hover { border-color: var(--iwb-hover-border); } .iwb-tq-row.fail { border-color: var(--iwb-err-bd); background: color-mix(in srgb, var(--iwb-err) 9%, var(--iwb-panel)); } diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index 4e6673c..e09c996 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -2014,7 +2014,7 @@ dependencies = [ [[package]] name = "image-workbench" -version = "3.26.236" +version = "3.26.237" dependencies = [ "arboard", "base64 0.22.1", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 1f67976..1b473a8 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "image-workbench" -version = "3.26.236" +version = "3.26.237" description = "无限画布 · 生图工作台桌面版" authors = ["malongan"] license = "" diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 8d25132..115ee93 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "../node_modules/@tauri-apps/cli/config.schema.json", "productName": "image-workbench", - "version": "3.26.236", + "version": "3.26.237", "identifier": "com.malongan.imageworkbench", "build": { "frontendDist": "../dist",