release: v3.26.90 相册 1.1.4 hover 加强

This commit is contained in:
qiqi committed 2026-11-25 23:03:36 +08:00
1 parent ed581a8089
commit de1b007d0d
8 files changed
+24 -11

No files matched your search

+1 -1
View File
@@ -812,7 +812,7 @@
global.IWBPluginHost.register({
id: 'album',
name: '相册',
version: '1.1.3',
version: '1.1.4',
apiVersion: 1,
capabilities: ['nodeTypes', 'images', 'files'],
settings: {
+3 -3
View File
@@ -1,7 +1,7 @@
{
"id": "album",
"name": "相册",
"version": "1.1.3",
"version": "1.1.4",
"apiVersion": 1,
"main": "main.js",
"style": "styles.css",
@@ -14,7 +14,7 @@
"出图"
],
"files": {
"main.js": "bc5f999f65db73cff167c140b49f8fb7bfc1233d7ec59f1280fa464c17a0df82",
"styles.css": "b61e806abee9dd8889aa1a12c8791d428feacab93fac64f89c18c589de390706"
"main.js": "7e092c7b38842661fde9bd301306609b38f3927c7025d97f4ab29bfc04683914",
"styles.css": "f8af2310bc5fe099f726f05b5234f928fe31a651f2143c96c88e474b9797fdf7"
}
}
+7 -1
View File
@@ -29,7 +29,13 @@
竖图撑到 167px,和 capacityOf() 按方形算的容量是两套账(最后一行常被裁一半)。
aspect-ratio 让每一格高 = 宽,容量因此可精确预测,宫格也终于整齐。
padding:0 必须显式写:<button> 的 UA 默认内边距会把图顶出边框。 */
.iwb-album-cell { position: relative; aspect-ratio: 1 / 1; padding: 0; border-radius: var(--iwb-radius-chip); overflow: hidden; background: color-mix(in srgb, var(--iwb-border) 55%, transparent); border: 1px solid var(--iwb-border); cursor: grab; }
.iwb-album-cell { position: relative; aspect-ratio: 1 / 1; padding: 0; border-radius: var(--iwb-radius-chip); overflow: hidden; background: color-mix(in srgb, var(--iwb-border) 55%, transparent); border: 1px solid var(--iwb-border); cursor: grab; transition: transform var(--iwb-motion-hover, .15s) var(--iwb-ease-hover, ease-out), box-shadow var(--iwb-motion-hover, .15s) var(--iwb-ease-hover, ease-out); }
/* 1.1.4(用户:1.06 太不明显):放大到 1.08 + 更深的投影 + 2px 品牌描边。
网格内**不做位移**(translateY 会让相邻格的 hover 判定抖动);描边用 outline 而不是加粗 border,
避免图片内容被 1px 的 border 变化挤动。z-index 走宿主层级 token(插件禁止裸值),
且被 .iwb-album-grid 的 overflow:hidden 限制在节点内。 */
.iwb-album-cell:hover { transform: scale(1.08); outline: 2px solid var(--iwb-hover-border, var(--iwb-brand)); outline-offset: -2px; box-shadow: 0 10px 26px rgba(0, 0, 0, .42), 0 2px 6px rgba(0, 0, 0, .28); z-index: var(--iwb-z-ctx, 90); }
@media (prefers-reduced-motion: reduce) { .iwb-album-cell { transition: none; } .iwb-album-cell:hover { transform: none; } }
.iwb-album-cell img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; }
.iwb-album-cell.off img { opacity: .38; }
/* 选中线 2px → 1px(用户:太粗)。1px 在浅底上仍分得清「选中」与「描边」。 */
+3 -3
View File
@@ -4,10 +4,10 @@
"dir": "album",
"main": "main.js",
"style": "styles.css",
"version": "1.1.3",
"version": "1.1.4",
"files": {
"main.js": "bc5f999f65db73cff167c140b49f8fb7bfc1233d7ec59f1280fa464c17a0df82",
"styles.css": "b61e806abee9dd8889aa1a12c8791d428feacab93fac64f89c18c589de390706"
"main.js": "7e092c7b38842661fde9bd301306609b38f3927c7025d97f4ab29bfc04683914",
"styles.css": "f8af2310bc5fe099f726f05b5234f928fe31a651f2143c96c88e474b9797fdf7"
}
},
{