From 66896d645744979de8b4ebe386961f9c3d7a13fb Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Mon, 20 Oct 2025 14:27:35 +0300 Subject: [PATCH] fix(client/print): text notes affecting slides --- apps/client/src/print.css | 2 +- apps/client/src/print.tsx | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/client/src/print.css b/apps/client/src/print.css index b935d9eb7..9ccf54362 100644 --- a/apps/client/src/print.css +++ b/apps/client/src/print.css @@ -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; } diff --git a/apps/client/src/print.tsx b/apps/client/src/print.tsx index e762f5781..de11d581a 100644 --- a/apps/client/src/print.tsx +++ b/apps/client/src/print.tsx @@ -33,6 +33,10 @@ function App({ note, noteId }: { note: FNote | null | undefined, noteId: string if (!note || !props) return + useLayoutEffect(() => { + document.body.dataset.noteType = note.type; + }, [ note ]); + return ( <> {note.type === "book"