From 6df1e41873cc2e3c31bf459c2ddf23554d463565 Mon Sep 17 00:00:00 2001 From: Peng Xiao Date: Tue, 12 Oct 2021 12:08:51 +0800 Subject: [PATCH] fix: tabs width when pdf is on --- src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.ts b/src/utils.ts index 5ca050c..788c481 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -187,7 +187,7 @@ export function useAdaptMainUIStyle(show: boolean, tabsWidth?: number | null) { const listener = () => { const { left: leftOffset, width } = mainContainer.getBoundingClientRect(); - const maxWidth = width - leftOffset - 10; + const maxWidth = width - 10; logseq.setMainUIInlineStyle({ zIndex: 9, userSelect: "none",