fix(promptlib): 1.14.4/1.14.5 参考图勾选框对齐与暗色修正
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 1m1s

用户反馈:勾选后对勾没对齐;取消勾选是紫色;暗色下勾选框发黑。

- 未选中药丸改中性色:原来底/文字沿用了 promptlib 的紫色 accent(--iwb-plp-accent),
  现在用 --iwb-layer + --iwb-text2,只有 is-on 才是 brand 蓝
- 勾选框尺寸 14→15px、圆角改 --iwb-set-check-radius(4px) 呈方形(原来 6px 在 14px 上像圆点)
- 对勾改用 left/top 50% + translate(-50%,-58%) 居中,不再靠像素偏移
- 暗色:未选中填充用 --iwb-field(深一档的灰),避免在暗色药丸上变成黑块;边框仍用 --iwb-border2
- is-on 时张数 em 跟随文字色(opacity .8),不再固定灰
This commit is contained in:
qiqi committed 2026-11-28 20:27:12 +08:00
1 parent 016d837aae
commit 9b535e77ce
3 files changed
+9 -8

No files matched your search

+3 -3
View File
@@ -56,11 +56,11 @@
"dir": "promptlib",
"main": "main.js",
"style": "styles.css",
"version": "1.14.3",
"version": "1.14.5",
"files": {
"manifest.json": "48655fa4fed98dbdc5806a00efe03996347be8ae3054a4883b4cf53800a610df",
"manifest.json": "53d26f76ae10d30dd77afd08a81a4cc3e7d9a30be60d2a7e187b9314be0f16b6",
"main.js": "cbb6e555eb575194c5210bcc56945bef50e4477986d9d41818b0d55f0845f4ab",
"styles.css": "9fbaf1f0113de7b33e8df25579d9cad873fe7f39e890859d39681dfa9384ce30"
"styles.css": "f116384f6d6358508b0e4e2b6a1dda158e28290cb519c975315a08c996fa8787"
}
},
{
+2 -2
View File
@@ -1,7 +1,7 @@
{
"id": "promptlib",
"name": "提示词库",
"version": "1.14.3",
"version": "1.14.5",
"apiVersion": 1,
"main": "main.js",
"style": "styles.css",
@@ -14,6 +14,6 @@
],
"files": {
"main.js": "cbb6e555eb575194c5210bcc56945bef50e4477986d9d41818b0d55f0845f4ab",
"styles.css": "9fbaf1f0113de7b33e8df25579d9cad873fe7f39e890859d39681dfa9384ce30"
"styles.css": "f116384f6d6358508b0e4e2b6a1dda158e28290cb519c975315a08c996fa8787"
}
}
+4 -3
View File
@@ -152,13 +152,14 @@
.iwb-plp-nk{flex:0 0 56px;width:56px;max-width:56px;padding-top:4px;color:var(--iwb-text2,#5b6472);font-size: 12px;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.iwb-plp-nin{flex:1 1 auto;min-width:0;height:auto;min-height:24px;padding:2px 8px;line-height:1.5;font-size: 12px;resize:none;overflow-y:hidden}
/* v1.14.2:参考图开关移到头部(与样式节点一致)——做成浅色药丸,不再是底部分隔行 */
.iwb-plp-nref{display:inline-flex;align-items:center;gap:6px;margin-top:6px;padding:2px 8px;border-radius:6px;background:color-mix(in srgb, var(--iwb-plp-accent,#7c4dff) 10%, transparent);color:var(--iwb-plp-accent,#5a4bd0);font-size: 12px;cursor:pointer;align-self:flex-start}
.iwb-plp-nref{display:inline-flex;align-items:center;gap:6px;margin-top:6px;padding:2px 8px;border-radius:6px;background:var(--iwb-layer,#f0f1f4);color:var(--iwb-text2,#4d5668);font-size: 12px;cursor:pointer;align-self:flex-start}
.iwb-plp-nref em{font-style:normal;color:var(--iwb-text2,#8b929c)}
/* v1.14.3:勾选框改成自绘的蓝色实心勾(与样式节点视觉一致;原生 macOS 勾选框在不同外观下不一致) */
.iwb-plp-nref input[type="checkbox"]{appearance:none;-webkit-appearance:none;margin:0;width:14px;height:14px;flex:0 0 auto;border-radius:var(--iwb-radius-chip,6px);border:1.5px solid var(--iwb-border2,#c9ccd4);background:var(--iwb-plugin-surface,#fff);cursor:pointer;position:relative;transition:background .12s ease,border-color .12s ease}
.iwb-plp-nref input[type="checkbox"]{appearance:none;-webkit-appearance:none;margin:0;width:15px;height:15px;flex:0 0 auto;border-radius:var(--iwb-set-check-radius,4px);border:1.5px solid var(--iwb-border2,#c9ccd4);background:var(--iwb-field,var(--iwb-plugin-surface,#fff));cursor:pointer;position:relative;transition:background .12s ease,border-color .12s ease}
.iwb-plp-nref input[type="checkbox"]:checked{background:var(--iwb-brand,#1677ff);border-color:var(--iwb-brand,#1677ff)}
.iwb-plp-nref input[type="checkbox"]:checked::after{content:"";position:absolute;left:4px;top:1px;width:4px;height:8px;border:solid var(--iwb-on-brand,#ffffff);border-width:0 2px 2px 0;transform:rotate(45deg)}
.iwb-plp-nref input[type="checkbox"]:checked::after{content:"";position:absolute;left:50%;top:50%;width:4px;height:8px;border:solid var(--iwb-on-brand,#ffffff);border-width:0 2px 2px 0;transform:translate(-50%,-58%) rotate(45deg)}
.iwb-plp-nref.is-on{background:color-mix(in srgb, var(--iwb-brand,#1677ff) 14%, transparent);color:var(--iwb-brand,#1677ff)}
.iwb-plp-nref.is-on em{color:inherit;opacity:.8}
.iwb-plp-nprev{margin-top:2px;border-top:1px dashed var(--iwb-border,#e3e5e9);padding-top:6px;color:var(--iwb-text2,#5b6472);font-size: 12px;line-height:1.6;max-height:88px;overflow:hidden}
/* v1.5.0:变量编辑器 / 详情变量 */