fix(client/print): text notes affecting slides

This commit is contained in:
Elian Doran 2025-10-20 14:27:35 +03:00
parent fffb8317cb
commit 66896d6457
No known key found for this signature in database
2 changed files with 5 additions and 1 deletions

View File

@ -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;
}

View File

@ -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"