feat(out): 骨架/角标改以图片 onLoad 为准(CSS :has 联动);onError 两级回退并标失败态
This commit is contained in:
1 parent
8398a389fe
commit
fd1a9c636b
3 files changed
+19
-3
No files matched your search
@@ -2583,3 +2583,10 @@ body .iwb-history-embedded .iwb-history-item.iwb-history-selected:hover img {
|
||||
/* 2026-12-02:输出单元格「下载中」骨架(无本地源时垫底,避免大图区域纯空白) */
|
||||
.iwb-out-cell-ph { position: absolute; inset: 0; display: grid; place-items: center; border-radius: var(--iwb-radius-card); background: var(--iwb-layer2); color: var(--iwb-text2); font-size: var(--iwb-font-xs); }
|
||||
.iwb-out-cell-ph-txt { opacity: .85; }
|
||||
|
||||
/* 2026-12-02:图片真正加载完成(is-loaded)后才收起骨架与角标 —— 之前以「本地源就绪」为准,
|
||||
会出现「角标没了、图还没出来」的空窗。用 :has 做纯 CSS 联动,不需要重渲染。 */
|
||||
.iwb-out-cell:has(.iwb-out-cell-img.is-loaded) .iwb-out-cell-ph,
|
||||
.iwb-out-cell:has(.iwb-out-cell-img.is-loaded) .iwb-out-cell-flag { display: none; }
|
||||
/* 两级回退都失败:明确显示失败态,而不是留一张破图 */
|
||||
.iwb-out-cell-img.is-broken { opacity: .25; }
|
||||
Reference in new issue
Block a user