Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(client/print): text notes affecting slides
Elian Doran66896d645744
diff --git a/apps/client/src/print.css b/apps/client/src/print.cssindex b935d9eb75..9ccf54362a 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.tsxindex e762f57817..de11d581a6 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: stringif (!note || !props) return <Error404 noteId={noteId} />+ useLayoutEffect(() => {+ document.body.dataset.noteType = note.type;+ }, [ note ]);+return (<>{note.type === "book"