fix(promptlib): 1.6.10 悬停缩放改内层背景层 + 封面不拦截指针(修闪烁与封面卡难点选)

This commit is contained in:
qiqi committed 2026-11-22 20:22:25 +08:00
1 parent 675ccf5016
commit 99649b0ecd
3 files changed
+16 -4

No files matched your search

+5 -3
View File
@@ -1468,8 +1468,10 @@
var starred = (p.group || '') === '收藏'
var coverUrl = coverOf(p)
var card = el('div', { class: 'iwb-plp-card' + (p.cover ? ' has-cover' : ' no-cover'), draggable: 'true', title: '单击查看详情 · 拖到画布插入 · 右键移动到分组' })
card.style.background = coverUrl ? 'var(--iwb-plugin-inset)' : gradOf(p)
if (coverUrl) card.appendChild(el('img', { class: 'iwb-plp-cover', src: coverUrl, alt: '', draggable: 'false' }))
var bg = el('div', { class: 'iwb-plp-bg' })
bg.style.background = coverUrl ? 'var(--iwb-plugin-inset)' : gradOf(p)
if (coverUrl) bg.appendChild(el('img', { class: 'iwb-plp-cover', src: coverUrl, alt: '', draggable: 'false' }))
card.appendChild(bg)
card.appendChild(el('div', { class: 'iwb-plp-t', text: p.name || '未命名' }))
card.addEventListener('pointerdown', function (e) {
if (e.button !== 0) return
@@ -1533,7 +1535,7 @@
global.IWBPluginHost.register({
id: 'promptlib',
name: '提示词库',
version: '1.6.9',
version: '1.6.10',
apiVersion: 1,
capabilities: ['panels', 'promptlib', 'nodeTypes', 'canvasWrite'],
data: { schemaVersion: 3, maxBytes: 4 * 1024 * 1024 },