diff --git a/promptlib/package.json b/promptlib/package.json index c41b204..75d99af 100644 --- a/promptlib/package.json +++ b/promptlib/package.json @@ -1,7 +1,7 @@ { "name": "@iwb-plugin/promptlib", "private": true, - "version": "1.8.6", + "version": "1.8.7", "description": "提示词库:右栏提示词列表(搜索/分组/收藏/新建编辑/插入画布/复制/删除),数据由宿主 promptlib 能力提供", "ibwPlugin": { "id": "promptlib", diff --git a/promptlib/src/index.js b/promptlib/src/index.js index a092b11..1ee6985 100644 --- a/promptlib/src/index.js +++ b/promptlib/src/index.js @@ -1370,11 +1370,11 @@ row.appendChild(val) return row } - meta.appendChild(metaRow('分组', el('span', { class: 'iwb-plp-dgroup', text: p.group || '未分组' }))) + meta.appendChild(metaRow('分组:', el('span', { class: 'iwb-plp-dgroup', text: p.group || '未分组' }))) var tagNodes = (p.tags || []).map(function (t) { return el('span', { class: 'iwb-plp-dtag', text: '#' + t }) }) if (!tagNodes.length) tagNodes = [el('span', { class: 'iwb-plp-dempty', text: '无' })] - meta.appendChild(metaRow('标签', tagNodes)) - meta.appendChild(metaRow('字数', el('span', { class: 'iwb-plp-dlen', text: String(p.text || '').length + ' 字' }))) + meta.appendChild(metaRow('标签:', tagNodes)) + meta.appendChild(metaRow('字数:', el('span', { class: 'iwb-plp-dlen', text: String(p.text || '').length + ' 字' }))) leftCol.appendChild(meta) var right = el('div', { class: 'iwb-plp-dright' }) var vlist = varsOf(p) @@ -1755,7 +1755,7 @@ global.IWBPluginHost.register({ id: 'promptlib', name: '提示词库', - version: '1.8.6', + version: '1.8.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 ce81c6f..742cab7 100644 --- a/promptlib/styles.css +++ b/promptlib/styles.css @@ -537,3 +537,11 @@ body.iwb-plp-dragging, body.iwb-plp-dragging *{user-select:none!important;-webki .iwb-plp-dialog-detail .iwb-plp-dbody{align-items:stretch!important} .iwb-plp-dialog-detail .iwb-plp-dright{align-self:stretch!important;height:100%;max-height:100%;overflow:hidden!important} .iwb-plp-dialog-detail .iwb-plp-dtext{flex:1 1 0;min-height:0;overflow-y:auto!important;overflow-x:hidden} +/* v1.8.7:详情标题缩小;分组/标签去底色;元信息加分割线与行高 */ +.iwb-plp-dialog-detail .iwb-plp-dtitle{font-size:17px!important;font-weight:650;margin-top:12px} +.iwb-plp-dialog-detail .iwb-plp-dmeta{margin-top:12px;padding-top:14px;border-top:1px solid #eef0f3;gap:10px} +.iwb-plp-dialog-detail .iwb-plp-dmrow{gap:6px} +.iwb-plp-dialog-detail .iwb-plp-dmk{flex:0 0 auto;width:auto;font-size:12px;line-height:1.6;color:#9aa1ac} +.iwb-plp-dialog-detail .iwb-plp-dgroup,.iwb-plp-dialog-detail .iwb-plp-dtag{background:transparent!important;padding:0!important;border-radius:0!important;font-size:12.5px;line-height:1.6;color:#2f3540} +.iwb-plp-dialog-detail .iwb-plp-dtag{color:#5a3fd0;} +.iwb-plp-dialog-detail .iwb-plp-dlen{font-size:12.5px;line-height:1.6;color:#2f3540}