mirror of
https://github.com/zadam/trilium.git
synced 2025-11-11 08:58:58 +01:00
chore(client): use backward-compatible hiding mechanism
This commit is contained in:
parent
5f4d0325aa
commit
efa7fd0b7d
@ -225,9 +225,8 @@ function NoteDetailWrapper({ Element, type, isVisible, isFullHeight, props }: {
|
|||||||
const typeMapping = TYPE_MAPPINGS[type];
|
const typeMapping = TYPE_MAPPINGS[type];
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={`${typeMapping.className} ${typeMapping.printable ? "note-detail-printable" : ""}`}
|
className={`${typeMapping.className} ${typeMapping.printable ? "note-detail-printable" : ""} ${isVisible ? "visible" : "hidden-ext"}`}
|
||||||
style={{
|
style={{
|
||||||
display: !isVisible ? "none" : "",
|
|
||||||
height: isFullHeight ? "100%" : ""
|
height: isFullHeight ? "100%" : ""
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user