Skip to content

Build your personal knowledge base with Trilium Notes

chore(client): use backward-compatible hiding mechanism

Elian Doranefa7fd0b7d8b
diff --git a/apps/client/src/widgets/NoteDetail.tsx b/apps/client/src/widgets/NoteDetail.tsx
index 03b0b64760..0482d0ddb3 100644
--- a/apps/client/src/widgets/NoteDetail.tsx
+++ b/apps/client/src/widgets/NoteDetail.tsx
@@ -225,9 +225,8 @@ function NoteDetailWrapper({ Element, type, isVisible, isFullHeight, props }: {
const typeMapping = TYPE_MAPPINGS[type];
return (
<div
- className={`${typeMapping.className} ${typeMapping.printable ? "note-detail-printable" : ""}`}
+ className={`${typeMapping.className} ${typeMapping.printable ? "note-detail-printable" : ""} ${isVisible ? "visible" : "hidden-ext"}`}
style={{
- display: !isVisible ? "none" : "",
height: isFullHeight ? "100%" : ""
}}
>