mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 20:19:05 +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;
|
||||
}
|
||||
|
||||
.ck-content {
|
||||
body[data-note-type="text"] .ck-content {
|
||||
font-size: var(--print-font-size);
|
||||
text-align: justify;
|
||||
}
|
||||
|
||||
@ -33,6 +33,10 @@ function App({ note, noteId }: { note: FNote | null | undefined, noteId: string
|
||||
|
||||
if (!note || !props) return <Error404 noteId={noteId} />
|
||||
|
||||
useLayoutEffect(() => {
|
||||
document.body.dataset.noteType = note.type;
|
||||
}, [ note ]);
|
||||
|
||||
return (
|
||||
<>
|
||||
{note.type === "book"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user