fix(out): 加载/失败态改用父容器打类(去 :has 依赖);破图显示「加载失败」
This commit is contained in:
1 parent
c20834b623
commit
37fe86c88c
3 files changed
+12
-4
No files matched your search
@@ -2586,7 +2586,13 @@ body .iwb-history-embedded .iwb-history-item.iwb-history-selected:hover img {
|
||||
|
||||
/* 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; }
|
||||
/* 2026-12-02:改用「父容器打类」,不依赖 :has()(老 WebView2 会整条丢弃选择器) */
|
||||
.iwb-out-cell.is-loaded-cell .iwb-out-cell-ph,
|
||||
.iwb-out-cell.is-loaded-cell .iwb-out-cell-flag { display: none; }
|
||||
/* 破图:收起骨架与角标,改为明确的「加载失败」文案 */
|
||||
.iwb-out-cell.is-broken-cell .iwb-out-cell-ph,
|
||||
.iwb-out-cell.is-broken-cell .iwb-out-cell-flag { display: none; }
|
||||
.iwb-out-cell-err { display: none; position: absolute; inset: 0; place-items: center; color: var(--iwb-err); font-size: var(--iwb-font-xs); }
|
||||
.iwb-out-cell.is-broken-cell .iwb-out-cell-err { display: grid; }
|
||||
/* 两级回退都失败:明确显示失败态,而不是留一张破图 */
|
||||
.iwb-out-cell-img.is-broken { opacity: .25; }
|
||||
Reference in new issue
Block a user