fix(print/table): missing title

This commit is contained in:
Elian Doran 2025-11-21 22:12:05 +02:00
parent 749740242e
commit c43820776f
No known key found for this signature in database

View File

@ -12,7 +12,11 @@ export default function TablePrintView({ note, noteIds, viewConfig }: ViewModePr
const [ html, setHtml ] = useState<string>();
return rowData && (
<>
<h1>{note.title}</h1>
<div className="table-print-view">
{!html ? (
<Tabulator
tabulatorRef={tabulatorRef}
@ -34,9 +38,10 @@ export default function TablePrintView({ note, noteIds, viewConfig }: ViewModePr
}}
/>
) : (
<RawHtmlBlock html={html} className="tabulator-print-fullscreen" />
<RawHtmlBlock html={html} />
)}
</div>
</>
)
}