From eee496a050d63d3dcf2af60bb4ed25c29b333ca3 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Thu, 20 Nov 2025 20:59:34 +0200 Subject: [PATCH] chore(print/list): get rid of inner div --- .../src/widgets/collections/legacy/ListPrintView.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/apps/client/src/widgets/collections/legacy/ListPrintView.tsx b/apps/client/src/widgets/collections/legacy/ListPrintView.tsx index 01a8259c2..07750a87b 100644 --- a/apps/client/src/widgets/collections/legacy/ListPrintView.tsx +++ b/apps/client/src/widgets/collections/legacy/ListPrintView.tsx @@ -8,7 +8,7 @@ import { useFilteredNoteIds } from "./utils"; interface NotesWithContent { note: FNote; - content: string; + content: { __html: string }; } export function ListPrintView({ note, noteIds: unfilteredNoteIds, onReady }: ViewModeProps<{}>) { @@ -30,7 +30,7 @@ export function ListPrintView({ note, noteIds: unfilteredNoteIds, onReady }: Vie insertPageTitle(contentEl, note.title); rewriteHeadings(contentEl, depth); - notesWithContent.push({ note, content: contentEl.innerHTML }); + notesWithContent.push({ note, content: { __html: contentEl.innerHTML } }); if (note.hasChildren()) { const imageLinks = note.getRelations("imageLink"); @@ -61,9 +61,7 @@ export function ListPrintView({ note, noteIds: unfilteredNoteIds, onReady }: Vie

{note.title}

{notesWithContent?.map(({ note: childNote, content }) => ( -
- -
+
))}