From f1a4fc003a2d3406c301c37b6103c07b3dd4ea58 Mon Sep 17 00:00:00 2001 From: Jeffrey Chen <78434827+TCOTC@users.noreply.github.com> Date: Fri, 31 Jan 2025 14:56:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20Alt=20=E7=82=B9=E5=87=BB=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E9=A1=B9=E5=9D=97=E6=A0=87=E4=B9=8B=E5=90=8E=EF=BC=8C?= =?UTF-8?q?=E6=8A=98=E5=8F=A0=E5=9D=97=E6=A0=87=E7=9A=84=E6=96=B9=E5=90=91?= =?UTF-8?q?=E9=9C=80=E8=A6=81=E6=A0=B9=E6=8D=AE=E5=88=97=E8=A1=A8=E9=A1=B9?= =?UTF-8?q?=E7=9A=84=E6=8A=98=E5=8F=A0=E7=8A=B6=E6=80=81=E5=8F=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix https://github.com/siyuan-note/siyuan/issues/13955 --- app/src/protyle/gutter/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.ts index add6e3b55ba..cef8f57376c 100644 --- a/app/src/protyle/gutter/index.ts +++ b/app/src/protyle/gutter/index.ts @@ -198,6 +198,7 @@ export class Gutter { } } }); + buttonElement.parentElement.querySelector("[data-type='fold'] > svg")?.setAttribute("style", `width: 10px${hasFold ? ";transform:rotate(90deg)" : ""}`); const doOperations: IOperation[] = []; const undoOperations: IOperation[] = []; Array.from(foldElement.children).forEach((ulElement) => { @@ -346,6 +347,7 @@ export class Gutter { } } }); + buttonElement.parentElement.querySelector("[data-type='fold'] > svg")?.setAttribute("style", `width: 10px${hasFold ? ";transform:rotate(90deg)" : ""}`); const doOperations: IOperation[] = []; const undoOperations: IOperation[] = []; Array.from(foldElement.parentElement.children).find((listItemElement) => {