From f97fbf6330173527cd1650a078a0702f01a79420 Mon Sep 17 00:00:00 2001 From: qiqi Date: Sun, 22 Nov 2026 22:33:28 +0800 Subject: [PATCH] =?UTF-8?q?style(promptlib):=201.6.23=20=E6=94=BE=E7=BD=AE?= =?UTF-8?q?=E6=8C=87=E7=A4=BA=E6=94=B9=E4=B8=BA=E7=81=B0=E8=89=B2=E5=B0=8F?= =?UTF-8?q?=E6=96=B9=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- promptlib/package.json | 2 +- promptlib/src/index.js | 4 ++-- promptlib/styles.css | 3 +++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/promptlib/package.json b/promptlib/package.json index 4789b1a..288bb27 100644 --- a/promptlib/package.json +++ b/promptlib/package.json @@ -1,7 +1,7 @@ { "name": "@iwb-plugin/promptlib", "private": true, - "version": "1.6.22", + "version": "1.6.23", "description": "提示词库:右栏提示词列表(搜索/分组/收藏/新建编辑/插入画布/复制/删除),数据由宿主 promptlib 能力提供", "ibwPlugin": { "id": "promptlib", diff --git a/promptlib/src/index.js b/promptlib/src/index.js index afcee66..370f17d 100644 --- a/promptlib/src/index.js +++ b/promptlib/src/index.js @@ -806,7 +806,7 @@ } // v1.6.22:放置指示改成半透明矩形框(跟手、左上角对齐落点),不再用卡片式幽灵。 function makePlaceGhost (kind) { - var dims = kind === 'ptpl' ? { w: 420, h: 260 } : (kind === 'img' ? { w: 280, h: 180 } : { w: 280, h: 120 }) + var dims = { w: 112, h: 112 } var box = el('div', { class: 'iwb-plp-placebox' }) box.style.width = dims.w + 'px' box.style.height = dims.h + 'px' @@ -1656,7 +1656,7 @@ global.IWBPluginHost.register({ id: 'promptlib', name: '提示词库', - version: '1.6.22', + version: '1.6.23', 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 d8f1c7a..3232964 100644 --- a/promptlib/styles.css +++ b/promptlib/styles.css @@ -393,3 +393,6 @@ body.iwb-plp-dragging, body.iwb-plp-dragging *{user-select:none!important;-webki .iwb-plp-placehint{font-size:10.5px;color:var(--iwb-plp-accent,#5a4bd0);margin-top:2px} .iwb-plp-placebox{position:fixed;left:-9999px;top:0;z-index:99999;pointer-events:none;border:2px dashed var(--iwb-plp-accent,#6b4dff);border-radius:12px;background:color-mix(in srgb,var(--iwb-plp-accent,#6b4dff) 9%,transparent);display:flex;align-items:center;justify-content:center;box-shadow:0 10px 26px rgba(30,20,80,.10)} .iwb-plp-placebox-t{font-size:12px;color:var(--iwb-plp-accent,#5a3fd0);background:rgba(255,255,255,.82);border-radius:999px;padding:3px 10px} +/* v1.6.23:放置指示改为灰色小方框 */ +.iwb-plp-placebox{border:2px dashed #9aa3ad;border-radius:10px;background:rgba(122,130,142,.10);box-shadow:none} +.iwb-plp-placebox-t{font-size:11px;color:#6b7280;background:rgba(255,255,255,.75);padding:2px 8px}