From 48a866892e119a8c3c2aa20cf579a1681886782a Mon Sep 17 00:00:00 2001 From: Aisland Date: Tue, 1 Sep 2026 21:06:35 +0800 Subject: [PATCH] =?UTF-8?q?feat(console):=20=E7=85=A7=E7=89=87=E5=BA=93?= =?UTF-8?q?=E6=AF=8F=E8=A1=8C=E9=83=BD=E5=8F=AF=E5=88=A0=E9=99=A4=EF=BC=88?= =?UTF-8?q?=E9=9D=9E=E5=BD=93=E5=89=8D=E7=85=A7=E7=89=87=E4=BB=85=E7=A7=BB?= =?UTF-8?q?=E9=99=A4=E8=AE=B0=E5=BD=95=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 01_content/lib/client.js | 2 +- 01_content/src/client/split.tsx | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/01_content/lib/client.js b/01_content/lib/client.js index be21669..2f2b1e3 100644 --- a/01_content/lib/client.js +++ b/01_content/lib/client.js @@ -17795,7 +17795,7 @@ function ConsolePane() { photoList.length > 0 ? photoList.slice(0, 4).map((p) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "dsh-wt_dropRow dsh-wt_photoRow" + (photoId === p.id ? " dsh-wt_photoRowOn" : ""), onClick: () => selectPhoto(p), children: [ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("img", { className: "dsh-wt_photoThumb", src: p.url, alt: "" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "dsh-wt_photoName", children: photoId === p.id ? T("console.bgPhotoCurrent") : T("console.bgPhotoUse") }), - photoId === p.id && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", { type: "button", className: "dsh-wt_dropTrash", title: T("console.bgPhotoDelete"), "aria-label": T("console.bgPhotoDelete"), onClick: (e) => { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", { type: "button", className: "dsh-wt_dropTrash", title: T("console.bgPhotoDelete"), "aria-label": T("console.bgPhotoDelete"), onClick: (e) => { e.stopPropagation(); removePhotoById(p); }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", { width: "11", height: "11", viewBox: "0 0 16 16", "aria-hidden": true, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M2.5 4.2h11M6.5 4.2V2.9c0-.6.4-1 .9-1h1.2c.5 0 .9.4.9 1v1.3M4.2 4.2l.5 8.1c0 .7.5 1.2 1.2 1.2h4.2c.7 0 1.2-.5 1.2-1.2l.5-8.1", fill: "none", stroke: "currentColor", strokeWidth: "1.1", strokeLinecap: "round" }) }) }) diff --git a/01_content/src/client/split.tsx b/01_content/src/client/split.tsx index 69fb024..c66cd40 100644 --- a/01_content/src/client/split.tsx +++ b/01_content/src/client/split.tsx @@ -1420,9 +1420,7 @@ function ConsolePane() {
selectPhoto(p)}> {photoId === p.id ? T('console.bgPhotoCurrent') : T('console.bgPhotoUse')} - {photoId === p.id && ( - - )} +
)) ) : (