From 26c96380136db5150ab39a1eda91fb20efabfb49 Mon Sep 17 00:00:00 2001 From: dragonwocky Date: Wed, 24 Jan 2024 02:27:53 +1100 Subject: [PATCH] fix(panel): dont move help button unless panel is pinned --- src/core/islands/Panel.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/islands/Panel.mjs b/src/core/islands/Panel.mjs index 9285d08..c00d0b2 100644 --- a/src/core/islands/Panel.mjs +++ b/src/core/islands/Panel.mjs @@ -295,7 +295,7 @@ function Panel({ if (!$notionHelp) return; width ??= await getWidth(); if (isNaN(width)) width = minWidth; - if (isClosed()) width = 0; + if (!isPinned()) width = 0; const to = `${26 + width}px`, from = $notionHelp.style.getPropertyValue("right"); if (from === to) return;