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

This commit is contained in:
Elian Doran 2026-02-24 18:10:51 +02:00
parent df4fa42acd
commit 3151e6dafc
No known key found for this signature in database

View File

@ -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 = () => {