From 1fa7a8d24ad6f98f9e9a337f76d88af371ebccb8 Mon Sep 17 00:00:00 2001 From: qiqi Date: Sun, 22 Nov 2026 23:20:27 +0800 Subject: [PATCH] =?UTF-8?q?fix(promptlib):=201.7.7=20=E5=AF=B9=E9=BD=90?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=8C=BA=E5=AD=97=E4=BD=93=E5=BA=A6=E9=87=8F?= =?UTF-8?q?=EF=BC=8C=E4=BF=AE=E5=A4=8D=E5=85=89=E6=A0=87=E4=B8=8E=E9=80=89?= =?UTF-8?q?=E5=8C=BA=E9=94=99=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- promptlib/package.json | 2 +- promptlib/src/index.js | 2 +- promptlib/styles.css | 18 ++++++++++++++++++ 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/promptlib/package.json b/promptlib/package.json index 39ddcca..9eb85bd 100644 --- a/promptlib/package.json +++ b/promptlib/package.json @@ -1,7 +1,7 @@ { "name": "@iwb-plugin/promptlib", "private": true, - "version": "1.7.6", + "version": "1.7.7", "description": "提示词库:右栏提示词列表(搜索/分组/收藏/新建编辑/插入画布/复制/删除),数据由宿主 promptlib 能力提供", "ibwPlugin": { "id": "promptlib", diff --git a/promptlib/src/index.js b/promptlib/src/index.js index 9282292..7bce7e8 100644 --- a/promptlib/src/index.js +++ b/promptlib/src/index.js @@ -1703,7 +1703,7 @@ global.IWBPluginHost.register({ id: 'promptlib', name: '提示词库', - version: '1.7.6', + version: '1.7.7', apiVersion: 1, capabilities: ['panels', 'promptlib', 'nodeTypes', 'canvas', 'canvasWrite'], data: { schemaVersion: 3, maxBytes: 4 * 1024 * 1024 }, diff --git a/promptlib/styles.css b/promptlib/styles.css index 1cde62b..c7cd6c5 100644 --- a/promptlib/styles.css +++ b/promptlib/styles.css @@ -464,3 +464,21 @@ body.iwb-plp-dragging, body.iwb-plp-dragging *{user-select:none!important;-webki .iwb-plp-dialog .iwb-plp-dcov .iwb-plp-cover{object-fit:contain;background:transparent} .iwb-plp-dialog .iwb-plp-ecov{background:var(--iwb-plugin-inset,#f3f4f7)} .iwb-plp-dialog .iwb-plp-dcov{background:var(--iwb-plugin-inset,#f3f4f7)} +/* v1.7.7:编辑区文字层与高亮层使用完全一致的字体度量,修复光标/选区错位 */ +.iwb-plp-dialog .iwb-plp-emid .iwb-plp-ewrap .iwb-plp-etext, +.iwb-plp-dialog .iwb-plp-emid .iwb-plp-hl{ + font-family:-apple-system,BlinkMacSystemFont,'PingFang SC','Helvetica Neue',system-ui,sans-serif!important; + font-size:13px!important; + line-height:1.85!important; + letter-spacing:0!important; + padding:10px 12px!important; + margin:0!important; + border:0!important; + box-sizing:border-box!important; + white-space:pre-wrap!important; + overflow-wrap:break-word!important; + word-break:break-word!important; + tab-size:4!important; +} +.iwb-plp-dialog .iwb-plp-emid .iwb-plp-ewrap .iwb-plp-etext{overflow-y:auto!important;scrollbar-gutter:stable} +.iwb-plp-dialog .iwb-plp-emid .iwb-plp-hl{overflow:hidden!important}