mirror of
https://github.com/zadam/trilium.git
synced 2026-03-16 09:00:25 +01:00
fix(client/layout): scroll padding enabled when note is protected
This commit is contained in:
@@ -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 = () => {
|
||||
|
||||
Reference in New Issue
Block a user