style(promptlib): 1.8.2 详情左右卡片化+分割线+内容标题
validate / validate (push) Canceled after 0s

This commit is contained in:
qiqi committed 2026-11-22 23:36:28 +08:00
1 parent b10a3bf28d
commit dbf3adfc77
3 files changed
+12 -2

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@iwb-plugin/promptlib",
"private": true,
"version": "1.8.1",
"version": "1.8.2",
"description": "提示词库:右栏提示词列表(搜索/分组/收藏/新建编辑/插入画布/复制/删除),数据由宿主 promptlib 能力提供",
"ibwPlugin": {
"id": "promptlib",
+2 -1
View File
@@ -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 },
+9
View File
@@ -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}