Skip to content

Build your personal knowledge base with Trilium Notes

fix(client/layout): scroll padding enabled when note is protected

Elian Doran3151e6dafc55
diff --git a/apps/client/src/widgets/scroll_padding.tsx b/apps/client/src/widgets/scroll_padding.tsx
index 549e53f441..e277ee86a1 100644
--- a/apps/client/src/widgets/scroll_padding.tsx
+++ b/apps/client/src/widgets/scroll_padding.tsx
@@ -8,6 +8,7 @@ export default function ScrollPadding() {
const [height, setHeight] = useState<number>(10);
const isEnabled = ["text", "code"].includes(note?.type ?? "")
&& viewScope?.viewMode === "default"
+ && note?.isContentAvailable()
&& !note?.isTriliumSqlite();
const refreshHeight = () => {