mirror of
https://github.com/zadam/trilium.git
synced 2025-11-04 05:28:59 +01:00
fix(client/print): text notes affecting slides
This commit is contained in:
parent
fffb8317cb
commit
66896d6457
@ -23,7 +23,7 @@ body {
|
|||||||
contain: none !important;
|
contain: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ck-content {
|
body[data-note-type="text"] .ck-content {
|
||||||
font-size: var(--print-font-size);
|
font-size: var(--print-font-size);
|
||||||
text-align: justify;
|
text-align: justify;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -33,6 +33,10 @@ function App({ note, noteId }: { note: FNote | null | undefined, noteId: string
|
|||||||
|
|
||||||
if (!note || !props) return <Error404 noteId={noteId} />
|
if (!note || !props) return <Error404 noteId={noteId} />
|
||||||
|
|
||||||
|
useLayoutEffect(() => {
|
||||||
|
document.body.dataset.noteType = note.type;
|
||||||
|
}, [ note ]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{note.type === "book"
|
{note.type === "book"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user