feat(plugins): 同步便利贴 sticky v1.0.5(圆角对齐宿主节点)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 36s
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 36s
This commit is contained in:
1 parent
57b885be31
commit
f7ace22121
2 files changed
+7
-5
No files matched your search
+3
-3
@@ -64,9 +64,9 @@
|
||||
},
|
||||
{
|
||||
"id": "sticky",
|
||||
"file": "plugin-sticky.909dcab8168c.js",
|
||||
"version": "1.0.4",
|
||||
"integrity": "sha256-kJ3KuBaM5Qs7law9aYJxbEfeYWs3I1F2eMtexuibVOc="
|
||||
"file": "plugin-sticky.ec6ffaa21fe4.js",
|
||||
"version": "1.0.5",
|
||||
"integrity": "sha256-7G/6oh/kod4qe0Zvt25O/5OFbO1hWJdk36mHcYEH218="
|
||||
},
|
||||
{
|
||||
"id": "style-source",
|
||||
|
||||
+4
-2
@@ -35,7 +35,9 @@
|
||||
// ---- 节点体 ----
|
||||
// 宿主容器 .iwb-plugin-node-body 是 flex 列且 padding:0;这里必须 flex:1 撑满,
|
||||
// 不能只写 height:100%(WKWebView 下百分比对 flex 项算不准,拖大后下半露出宿主底色)。
|
||||
'.iwb-sticky-node{position:relative;display:flex;flex-direction:column;flex:1 1 auto;min-height:0;width:100%;box-sizing:border-box;border-radius:10px;overflow:visible}' +
|
||||
// 圆角对齐宿主节点:外框 .iwb-node 用 var(--iwb-node-radius)=14px 且有 1px 边框,
|
||||
// 纸片在框内 ⇒ 内圈半径 = 外圈 - 1px,选中时两层边缘才不会错开。
|
||||
'.iwb-sticky-node{position:relative;display:flex;flex-direction:column;flex:1 1 auto;min-height:0;width:100%;box-sizing:border-box;border-radius:calc(var(--iwb-node-radius, 14px) - 1px);overflow:visible}' +
|
||||
'.iwb-sticky-tools{display:flex;align-items:center;gap:6px;padding:6px 8px;border-bottom:1px solid rgba(0,0,0,.08);flex:0 0 auto;position:relative;z-index:2}' +
|
||||
'.iwb-sticky-btn{cursor:pointer;border:1px solid rgba(0,0,0,.2);border-radius:6px;background:transparent;color:inherit;font-size:11px;padding:2px 6px;font-family:inherit;line-height:1.4;user-select:none}' +
|
||||
'.iwb-sticky-btn:hover{background:rgba(0,0,0,.07)}' +
|
||||
@@ -416,7 +418,7 @@
|
||||
global.IWBPluginHost.register({
|
||||
id: 'sticky',
|
||||
name: '便利贴',
|
||||
version: '1.0.4',
|
||||
version: '1.0.5',
|
||||
apiVersion: 1,
|
||||
capabilities: ['panels', 'nodeTypes', 'canvas'],
|
||||
}, function (ctx) {
|
||||
Reference in new issue
Block a user