From ee0b52ae56b78727fff91025217c478a0e2f0de7 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sat, 25 Mar 2023 17:13:36 +0800 Subject: [PATCH] :rotating_light: --- app/src/mobile/util/initFramework.ts | 2 +- app/src/util/Tree.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/mobile/util/initFramework.ts b/app/src/mobile/util/initFramework.ts index 17a955905..7fa2d3721 100644 --- a/app/src/mobile/util/initFramework.ts +++ b/app/src/mobile/util/initFramework.ts @@ -29,7 +29,7 @@ export const initFramework = () => { let bookmark: MobileBookmarks; let tag: MobileTags; // 不能使用 getEventName,否则点击返回会展开右侧栏 - const firstToolbarElement = sidebarElement.querySelector(".toolbar--border") + const firstToolbarElement = sidebarElement.querySelector(".toolbar--border"); firstToolbarElement.addEventListener("click", (event: Event & { target: Element }) => { diff --git a/app/src/util/Tree.ts b/app/src/util/Tree.ts index 7b9863dfd..270fc48aa 100644 --- a/app/src/util/Tree.ts +++ b/app/src/util/Tree.ts @@ -77,10 +77,10 @@ export class Tree { let style = ""; if (isMobile()) { if (item.depth > 0) { - style = `padding-left: ${(item.depth - 1) * 29 + 40}px` + style = `padding-left: ${(item.depth - 1) * 29 + 40}px`; } } else { - style = `padding-left: ${(item.depth - 1) * 18 + 22}px;margin-right: 2px` + style = `padding-left: ${(item.depth - 1) * 18 + 22}px;margin-right: 2px`; } html += `
  • let style = ""; if (isMobile()) { if (item.depth > 0) { - style = `padding-left: ${(item.depth - 1) * 29 + 40}px` + style = `padding-left: ${(item.depth - 1) * 29 + 40}px`; } } else { - style = `padding-left: ${(item.depth - 1) * 18 + 22}px;margin-right: 2px` + style = `padding-left: ${(item.depth - 1) * 18 + 22}px;margin-right: 2px`; } html += `