From ab8579dcef78ff7b33341fdf2fdaf9fd435e17c2 Mon Sep 17 00:00:00 2001 From: qiqi Date: Thu, 3 Dec 2026 11:02:24 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20v3.26.236=EF=BC=88=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E7=89=88=EF=BC=9A=E6=A0=87=E7=AD=BE=E6=9D=A1=20portal=20?= =?UTF-8?q?=E5=9B=BA=E5=AE=9A=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 5 +++++ app.js | 2 +- package.json | 2 +- src-tauri/Cargo.lock | 2 +- src-tauri/Cargo.toml | 2 +- src-tauri/tauri.conf.json | 2 +- style.css | 4 ++-- 7 files changed, 12 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ea51466..2076f43 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,11 @@ - 历史条目补录:该 tag 当时未在 CHANGELOG 记录(release-records 守卫要求 tag 与条目双向一致),内容按当时提交补一句占位说明。 +## v3.26.236(2026-12-03)顶栏标签条彻底固定 + +- 工作区标签条 portal 到 body + position:fixed,脱离 overlay 的滚动/层叠;插件页改 position:fixed。 +- 修 235 在 WebView2 下仍会被整页滚动带走的问题。 + ## v3.26.235(2026-12-03)任务队列修复(选中/滚动/缩略图/定位) - 修任务队列入口在离开页面后仍高亮(activePage 增加 shellView==='page' 判断)。 diff --git a/app.js b/app.js index 629fe0c..62544ad 100644 --- a/app.js +++ b/app.js @@ -8563,7 +8563,7 @@ const tbCenterSeed = (type, refs) => { const page = wPluginPages.find((p) => p.pluginId === pluginPage.pluginId && p.id === pluginPage.pageId) return page ? el(PluginPageHost, { key: page.pluginId + ':' + page.id, page }) : null })() : null, - tabstripEl, // S12:顶部标签条(在顶栏上方) + ReactDOM.createPortal(tabstripEl, document.body), // S12:顶部标签条(portal 到 body,脱离 overlay 的滚动/层叠) topbarEl, el('div', { className: 'iwb-canvas' + (shellView !== 'canvas' ? ' iwb-canvas-hidden' : '') + (connecting ? ' iwb-connecting' : '') + (refs.drag ? ' iwb-dragging' : '') + (tool === 'pan' ? ' iwb-tool-pan' : ''), diff --git a/package.json b/package.json index 23e0ce1..c159d85 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "image-workbench-web", "private": true, - "version": "3.26.235", + "version": "3.26.236", "description": "Browser-based node canvas image workbench", "scripts": { "build": "node scripts/build.js && node scripts/copy-plugins.js", diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index ccac843..4e6673c 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -2014,7 +2014,7 @@ dependencies = [ [[package]] name = "image-workbench" -version = "3.26.235" +version = "3.26.236" dependencies = [ "arboard", "base64 0.22.1", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 61d04af..1f67976 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "image-workbench" -version = "3.26.235" +version = "3.26.236" description = "无限画布 · 生图工作台桌面版" authors = ["malongan"] license = "" diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 767ada1..8d25132 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.235", + "version": "3.26.236", "identifier": "com.malongan.imageworkbench", "build": { "frontendDist": "../dist", diff --git a/style.css b/style.css index cee28bf..717d357 100644 --- a/style.css +++ b/style.css @@ -1258,7 +1258,7 @@ body .iwb-history-embedded .iwb-history-item.iwb-history-selected:hover img { .iwb-canvas-meta .iwb-status-err { color: var(--iwb-err); } .iwb-canvas-topbar .iwb-top-nav-icon { width: 30px; height: 30px; } /* S12:顶部标签条(浏览器式多画布标签)——UX_SPEC §4 单框扁平 token(容器透明、active 品牌色扁平高亮、只用 CSS 变量) */ -.iwb-tabstrip { position: fixed; left: 0; right: 0; top: 0; height: var(--iwb-chrome-h); z-index: 36; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: var(--iwb-chrome); box-sizing: border-box; border-bottom: 1px solid var(--iwb-border); overflow-x: auto; scrollbar-width: none; pointer-events: none; } +.iwb-tabstrip { position: fixed; left: 0; right: 0; top: 0; height: var(--iwb-chrome-h); z-index: calc(var(--iwb-z-curtain) + 1); display: flex; align-items: center; gap: 8px; padding: 0 14px; background: var(--iwb-chrome); box-sizing: border-box; border-bottom: 1px solid var(--iwb-border); overflow-x: auto; scrollbar-width: none; pointer-events: none; } .iwb-tabstrip .iwb-tab { pointer-events: auto; } .iwb-tabstrip::-webkit-scrollbar { display: none; } /* 标签:**全项目只有这一套**(v3.27.1 收敛)。高度/圆角/字号/内距走 token,改一档全局一致。 @@ -2282,7 +2282,7 @@ body .iwb-history-embedded .iwb-history-item.iwb-history-selected:hover img { /* 用「整屏 + 内边距」而不是 top:36/left:52: 标签条高度或导航宽度以后若有变化,页头也不会被压在标签条下面(v3.25.60 修重叠) */ .iwb-plugin-page { - position: absolute; inset: 0; z-index: 25; box-sizing: border-box; + position: fixed; inset: 0; z-index: 25; box-sizing: border-box; padding: 42px 0 0 52px; display: flex; flex-direction: column; background: var(--iwb-bg); overflow: hidden; /* 2026-12-03:整页锁滚,只有 body 滚;避免标签条/页头被一起滚走 */