From dbf3adfc77a47fef518113d97ca91c2714337fa3 Mon Sep 17 00:00:00 2001 From: qiqi Date: Sun, 22 Nov 2026 23:36:28 +0800 Subject: [PATCH] =?UTF-8?q?style(promptlib):=201.8.2=20=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E5=B7=A6=E5=8F=B3=E5=8D=A1=E7=89=87=E5=8C=96+=E5=88=86?= =?UTF-8?q?=E5=89=B2=E7=BA=BF+=E5=86=85=E5=AE=B9=E6=A0=87=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- promptlib/package.json | 2 +- promptlib/src/index.js | 3 ++- promptlib/styles.css | 9 +++++++++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/promptlib/package.json b/promptlib/package.json index c8bdff2..da31902 100644 --- a/promptlib/package.json +++ b/promptlib/package.json @@ -1,7 +1,7 @@ { "name": "@iwb-plugin/promptlib", "private": true, - "version": "1.8.1", + "version": "1.8.2", "description": "提示词库:右栏提示词列表(搜索/分组/收藏/新建编辑/插入画布/复制/删除),数据由宿主 promptlib 能力提供", "ibwPlugin": { "id": "promptlib", diff --git a/promptlib/src/index.js b/promptlib/src/index.js index 59e1fd1..d462124 100644 --- a/promptlib/src/index.js +++ b/promptlib/src/index.js @@ -1385,6 +1385,7 @@ if (last < str.length) txt.appendChild(document.createTextNode(str.slice(last))) })() function filled () { return vlist.length ? fillTpl(p.text, vals) : String(p.text || '') } + right.appendChild(el('div', { class: 'iwb-plp-dsec', text: '提示词内容' })) right.appendChild(txt) bodyEl.appendChild(leftCol); bodyEl.appendChild(right) var del = el('button', { class: 'iwb-btn iwb-btn-sm iwb-btn-danger', text: '删除' }) @@ -1748,7 +1749,7 @@ global.IWBPluginHost.register({ id: 'promptlib', name: '提示词库', - version: '1.8.1', + version: '1.8.2', 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 0d40146..d0539fa 100644 --- a/promptlib/styles.css +++ b/promptlib/styles.css @@ -517,3 +517,12 @@ body.iwb-plp-dragging, body.iwb-plp-dragging *{user-select:none!important;-webki .iwb-plp-tagin{height:30px;border-radius:8px} .iwb-plp-tagadd{flex:0 0 auto;width:30px;height:30px;padding:0;border-radius:8px;background:#f2f4f7;border:1px solid #e2e6ec;color:#5b6472;font-size:16px;line-height:1;display:inline-flex;align-items:center;justify-content:center} .iwb-plp-tagadd:hover{background:#e9ecf1} +/* v1.8.2:详情左右两栏卡片化 + 分割线 */ +.iwb-plp-dialog-detail .iwb-plp-dbody{gap:14px;padding:16px;background:#f4f5f7} +.iwb-plp-dialog-detail .iwb-plp-dleftcol{flex:0 0 300px;width:300px;padding:12px;border:1px solid #e8eaee;border-radius:14px;background:#fff;align-self:flex-start} +.iwb-plp-dialog-detail .iwb-plp-dcov{width:100%;height:270px;border-radius:10px} +.iwb-plp-dialog-detail .iwb-plp-dtitle{font-size:20px;font-weight:650;line-height:1.35;margin-top:14px;color:var(--iwb-text,#1d2129)} +.iwb-plp-dialog-detail .iwb-plp-dmeta{margin-top:12px;padding-top:12px;border-top:1px solid #eef0f3;gap:8px} +.iwb-plp-dialog-detail .iwb-plp-dright{flex:1 1 auto;min-width:0;min-height:0;display:flex;flex-direction:column;padding:14px 16px;border:1px solid #e8eaee;border-radius:14px;background:#fff;overflow:hidden} +.iwb-plp-dsec{font-size:11.5px;font-weight:600;color:#8a919c;letter-spacing:.04em;padding-bottom:8px;margin-bottom:8px;border-bottom:1px solid #eef0f3;flex:0 0 auto} +.iwb-plp-dialog-detail .iwb-plp-dtext{flex:1 1 auto;min-height:0;overflow:auto;padding-right:10px;font-size:13.5px;line-height:2;color:#3a4048}