This commit is contained in:
1 parent
98826f9ee3
commit
79d631ce86
3 files changed
+20
-3
No files matched your search
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@iwb-plugin/promptlib",
|
||||
"private": true,
|
||||
"version": "1.7.2",
|
||||
"version": "1.7.3",
|
||||
"description": "提示词库:右栏提示词列表(搜索/分组/收藏/新建编辑/插入画布/复制/删除),数据由宿主 promptlib 能力提供",
|
||||
"ibwPlugin": {
|
||||
"id": "promptlib",
|
||||
|
||||
+13
-2
@@ -919,7 +919,18 @@
|
||||
var bodyEl = el('div', { class: 'iwb-plp-dbody' })
|
||||
var footEl = el('div', { class: 'iwb-plp-dfooter' })
|
||||
var grip2 = el('div', { class: 'iwb-plp-resize', title: '拖动调整大小' })
|
||||
card.appendChild(head); card.appendChild(bodyEl); card.appendChild(footEl); card.appendChild(grip2)
|
||||
var hres = el('div', { class: 'iwb-plp-hres', title: '拖动调整弹窗高度' })
|
||||
hres.addEventListener('pointerdown', function (e) {
|
||||
e.preventDefault(); e.stopPropagation()
|
||||
var sy = e.clientY, oh = live.h
|
||||
function mv (ev) {
|
||||
live.h = Math.max(420, Math.min((global.innerHeight || 900) - 40, oh + ev.clientY - sy))
|
||||
apply()
|
||||
}
|
||||
function up () { global.removeEventListener('pointermove', mv); global.removeEventListener('pointerup', up); saveDlg(key, live) }
|
||||
global.addEventListener('pointermove', mv); global.addEventListener('pointerup', up)
|
||||
})
|
||||
card.appendChild(head); card.appendChild(hres); card.appendChild(bodyEl); card.appendChild(footEl); card.appendChild(grip2)
|
||||
mask.appendChild(card)
|
||||
document.body.appendChild(mask)
|
||||
var live = { x: box.x, y: box.y, w: box.w, h: box.h }
|
||||
@@ -1702,7 +1713,7 @@
|
||||
global.IWBPluginHost.register({
|
||||
id: 'promptlib',
|
||||
name: '提示词库',
|
||||
version: '1.7.2',
|
||||
version: '1.7.3',
|
||||
apiVersion: 1,
|
||||
capabilities: ['panels', 'promptlib', 'nodeTypes', 'canvas', 'canvasWrite'],
|
||||
data: { schemaVersion: 3, maxBytes: 4 * 1024 * 1024 },
|
||||
|
||||
@@ -444,3 +444,9 @@ body.iwb-plp-dragging, body.iwb-plp-dragging *{user-select:none!important;-webki
|
||||
.iwb-plp-dialog .iwb-plp-vi.is-open{background:#eef0f3;color:#5b6472}
|
||||
.iwb-plp-dialog .iwb-plp-vdesc{background:transparent;border:1px dashed #dfe3e9}
|
||||
.iwb-plp-dvar{background:transparent;color:#1d2129;font-weight:600;padding:0}
|
||||
.iwb-plp-hres{height:6px;margin:-3px 0 0;cursor:ns-resize;flex:0 0 auto;border-radius:3px}
|
||||
.iwb-plp-hres:hover{background:#e7e9ee}
|
||||
/* 正文可见性:textarea 透明,显示下方高亮层 */
|
||||
.iwb-plp-dialog .iwb-plp-emid .iwb-plp-ewrap{flex:1 1 auto;min-height:0;position:relative;display:flex;background:#fbfcfd;border:1px solid #eef0f3;border-radius:9px}
|
||||
.iwb-plp-dialog .iwb-plp-emid .iwb-plp-ewrap .iwb-plp-etext{background:transparent!important;color:transparent!important;border:0!important;box-shadow:none!important;padding:10px 12px}
|
||||
.iwb-plp-dialog .iwb-plp-hl{padding:10px 12px;font-size:13px;line-height:1.9}
|
||||
Reference in new issue
Block a user