上一版注入的 `.iwb-node .iwb-textarea-plain{max-height:240px}` 把宿主
`.iwb-node-fixed .iwb-textarea{max-height:none;height:auto!important}` 盖掉了:
两者特异性同为 (0,2,0),插件样式注在 style.css 之后 ⇒ 上限赢。用户拉高节点
后文字仍停在 240px,下面一大片空白。
- 上限改为只作用于 `.iwb-node:not(.iwb-node-fixed)`(node.h 有值 = 手动拉过尺寸),
并补 `.iwb-node.iwb-node-fixed .iwb-textarea-plain{max-height:none}` 兜底
- harness:合成宿主补抄 style.css 的 fixed 规则;新增 2 条断言(文本域随节点撑满 / maxH=none)
- 实测 273px 默认节点仍限 240 内滚动;拉高到 522 时 textarea 撑到 492,无裁切
12 lines
378 B
JSON
12 lines
378 B
JSON
{
|
|
"name": "@iwb-plugin/style-source",
|
|
"private": true,
|
|
"version": "1.0.2",
|
|
"description": "风格库:资源库面板里浏览 310 个 AI 绘画风格(12 分类 / 搜索 / 变量替换),一键把预览图插入画布 ref 节点、把提示词插入 prompt 节点",
|
|
"ibwPlugin": {
|
|
"id": "style-source",
|
|
"entry": "src/index.js",
|
|
"apiVersion": 1
|
|
}
|
|
}
|