Skip to content

Commit 0cc7515

Browse files
committed
Fix quickTools height fallback
1 parent 8efee2a commit 0cc7515

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/lib/editorManager.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,10 @@ async function EditorManager($header, $body) {
676676
actions("set-height", { height: 0, save: false });
677677
} else {
678678
root.classList.remove("hide-floating-button");
679-
const quickToolsHeight = appSettings.value.quickTools || 1;
679+
const quickToolsHeight =
680+
appSettings.value.quickTools !== undefined
681+
? appSettings.value.quickTools
682+
: 1;
680683
actions("set-height", { height: quickToolsHeight, save: true });
681684
}
682685

0 commit comments

Comments
 (0)