Skip to content

Build your personal knowledge base with Trilium Notes

fix(markdown): scroll padding affecting height

Elian Doran81c266f69bb0
diff --git a/apps/client/src/widgets/scroll_padding.tsx b/apps/client/src/widgets/scroll_padding.tsx
index e277ee86a1..57d7349d05 100644
--- a/apps/client/src/widgets/scroll_padding.tsx
+++ b/apps/client/src/widgets/scroll_padding.tsx
@@ -9,7 +9,8 @@ export default function ScrollPadding() {
const isEnabled = ["text", "code"].includes(note?.type ?? "")
&& viewScope?.viewMode === "default"
&& note?.isContentAvailable()
- && !note?.isTriliumSqlite();
+ && !note?.isTriliumSqlite()
+ && !note?.isMarkdown();
const refreshHeight = () => {
if (!ref.current) return;