mirror of
https://github.com/zadam/trilium.git
synced 2026-02-28 17:43:36 +01:00
fix(client/layout): scroll padding enabled when note is protected
This commit is contained in:
parent
df4fa42acd
commit
3151e6dafc
@ -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 = () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user