Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(client/attachments): full-height attachment not displayed correctly (closes #7847)
Elian Doraned373107c26d
diff --git a/apps/client/src/widgets/scroll_padding.tsx b/apps/client/src/widgets/scroll_padding.tsxindex d8452e3018..4ebb7f42da 100644--- a/apps/client/src/widgets/scroll_padding.tsx+++ b/apps/client/src/widgets/scroll_padding.tsx@@ -2,10 +2,10 @@ import { useEffect, useRef, useState } from "preact/hooks";import { useNoteContext } from "./react/hooks";export default function ScrollPadding() {- const { note, parentComponent, ntxId } = useNoteContext();+ const { note, parentComponent, ntxId, viewScope } = useNoteContext();const ref = useRef<HTMLDivElement>(null);const [height, setHeight] = useState<number>(10);- const isEnabled = ["text", "code"].includes(note?.type ?? "");+ const isEnabled = ["text", "code"].includes(note?.type ?? "") && viewScope?.viewMode === "default";const refreshHeight = () => {if (!ref.current) return;