From 3485c507ec76d072a8a776c222d4b43876eb9ef3 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 14 May 2024 08:51:36 +0800 Subject: [PATCH] :art: https://github.com/Yimien/plugin-memos-sync/issues/25 --- app/src/plugin/Setting.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/plugin/Setting.ts b/app/src/plugin/Setting.ts index 8d3bef79e..c3b587665 100644 --- a/app/src/plugin/Setting.ts +++ b/app/src/plugin/Setting.ts @@ -50,7 +50,7 @@ export class Setting { } const tagName = actionElement?.classList.contains("b3-switch") ? "label" : "div"; if (typeof item.direction === "undefined") { - item.direction = "TEXTAREA" === actionElement.tagName ? "row" : "column"; + item.direction = (!actionElement || "TEXTAREA" === actionElement.tagName) ? "row" : "column"; } if (item.direction === "row") { html = `<${tagName} class="b3-label">