From a215b2db82db0f2983ed5b6088d0f63ee2239996 Mon Sep 17 00:00:00 2001 From: Aisland Date: Tue, 1 Sep 2026 21:35:58 +0800 Subject: [PATCH] =?UTF-8?q?fix(console):=20=E7=85=A7=E7=89=87=E6=BB=A4?= =?UTF-8?q?=E9=95=9C=E5=8F=AA=E4=BD=9C=E7=94=A8=E4=BA=8E=E5=AA=92=E4=BD=93?= =?UTF-8?q?img=E5=AD=90=E5=85=83=E7=B4=A0=E8=80=8C=E9=9D=9E=E6=95=B4?= =?UTF-8?q?=E4=B8=AA=E8=83=8C=E6=99=AF=E5=B1=82=E2=80=94=E2=80=94=E7=BD=91?= =?UTF-8?q?=E6=A0=BC=E7=BA=BF=E4=B8=8D=E5=86=8D=E8=A2=AB=E7=85=A7=E7=89=87?= =?UTF-8?q?HSL=E6=BB=A4=E9=95=9C=E8=BF=9E=E5=9D=90=EF=BC=8C=E7=85=A7?= =?UTF-8?q?=E7=89=87/=E8=A7=86=E9=A2=91=E7=BD=91=E6=A0=BC=E8=A7=82?= =?UTF-8?q?=E6=84=9F=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 01_content/lib/client.js | 6 +++--- 01_content/src/client/split.tsx | 6 ++++-- 01_content/src/client/styles.ts | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/01_content/lib/client.js b/01_content/lib/client.js index be40938..4690e2c 100644 --- a/01_content/lib/client.js +++ b/01_content/lib/client.js @@ -8215,7 +8215,7 @@ var css = xterm_default + "\n" + [ ".dsh-wt_photoName{flex:1;min-width:0;font-size:11px;line-height:16px;color:var(--wt-text2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}", ".dsh-wt_photoEmpty{padding:4px 4px 2px;font-size:11px;line-height:16px;color:var(--wt-text3)}", ".dsh-wt_hslDivider{height:1px;margin:5px 4px;background:var(--wt-border);opacity:.5}", - ".dsh-wt_consoleVid{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}", + ".dsh-wt_consoleMedia{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}", ".dsh-wt_gridHalf{flex:1;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:4px;padding:0 2px;box-sizing:border-box}", ".dsh-wt_thumbWrap{position:relative;flex:none;width:30px;height:30px}", ".dsh-wt_thumbWrap .dsh-wt_photoThumb{position:absolute;inset:0}", @@ -17675,8 +17675,8 @@ function ConsolePane() { { mode: "system", key: "console.themeSystem" } ]; return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "dsh-wt_console", "data-wt-theme": resolvedTheme, "data-wt-shape": shape, "data-wt-bg": bg, "data-wt-grid": bg === "photo" && !photoGrid ? "off" : "on", style: bg === "plain" || bg === "photo" ? { ...bg === "plain" ? { ["--wt-bg"]: "hsl(" + plainHsl.h + ", " + plainHsl.s + "%, " + plainHsl.l + "%)" } : {}, ...bg === "photo" ? { ["--wt-gridPhoto"]: "rgba(255,255,255," + gridOpacity / 100 + ")" } : {} } : void 0, children: [ - /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: "dsh-wt_consoleBg", "aria-hidden": true, style: bg === "photo" && bgPhoto ? { backgroundImage: 'url("' + bgPhoto + '")', backgroundSize: "cover", backgroundPosition: "center", ...photoHsl.h !== 0 || photoHsl.s !== 100 || photoHsl.l !== 100 ? { filter: "hue-rotate(" + photoHsl.h + "deg) saturate(" + photoHsl.s + "%) brightness(" + photoHsl.l + "%)" } : {} } : bg === "glow" && (glowHsl.h !== 0 || glowHsl.s !== 100 || glowHsl.l !== 100) ? { filter: "hue-rotate(" + glowHsl.h + "deg) saturate(" + glowHsl.s + "%) brightness(" + glowHsl.l + "%)" } : void 0, children: [ - bg === "photo" && bgVideo && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("video", { className: "dsh-wt_consoleVid", src: bgVideo, autoPlay: true, muted: true, loop: true, playsInline: true, style: photoHsl.h !== 0 || photoHsl.s !== 100 || photoHsl.l !== 100 ? { filter: "hue-rotate(" + photoHsl.h + "deg) saturate(" + photoHsl.s + "%) brightness(" + photoHsl.l + "%)" } : void 0 }), + /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: "dsh-wt_consoleBg", "aria-hidden": true, style: bg === "glow" && (glowHsl.h !== 0 || glowHsl.s !== 100 || glowHsl.l !== 100) ? { filter: "hue-rotate(" + glowHsl.h + "deg) saturate(" + glowHsl.s + "%) brightness(" + glowHsl.l + "%)" } : void 0, children: [ + bg === "photo" && (bgVideo ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("video", { className: "dsh-wt_consoleMedia", src: bgVideo, autoPlay: true, muted: true, loop: true, playsInline: true, style: photoHsl.h !== 0 || photoHsl.s !== 100 || photoHsl.l !== 100 ? { filter: "hue-rotate(" + photoHsl.h + "deg) saturate(" + photoHsl.s + "%) brightness(" + photoHsl.l + "%)" } : void 0 }) : bgPhoto ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("img", { className: "dsh-wt_consoleMedia", src: bgPhoto, alt: "", style: photoHsl.h !== 0 || photoHsl.s !== 100 || photoHsl.l !== 100 ? { filter: "hue-rotate(" + photoHsl.h + "deg) saturate(" + photoHsl.s + "%) brightness(" + photoHsl.l + "%)" } : void 0 }) : null), bg === "glow" && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("i", { className: "dsh-wt_blob dsh-wt_blob1" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("i", { className: "dsh-wt_blob dsh-wt_blob2" }), diff --git a/01_content/src/client/split.tsx b/01_content/src/client/split.tsx index 26bbfd9..f615c45 100644 --- a/01_content/src/client/split.tsx +++ b/01_content/src/client/split.tsx @@ -1329,8 +1329,10 @@ function ConsolePane() { ] return (
- - {bg === 'photo' && bgVideo &&