make print better

This commit is contained in:
Philipinho
2025-09-04 13:22:43 -07:00
parent 26ea04e2a3
commit c99bfb8ef1
3 changed files with 22 additions and 9 deletions

View File

@ -145,6 +145,7 @@ export default function DrawioView(props: NodeViewProps) {
variant="default"
color="gray"
mx="xs"
className="print-hide"
style={{
position: "absolute",
top: 8,

View File

@ -183,6 +183,7 @@ export default function ExcalidrawView(props: NodeViewProps) {
variant="default"
color="gray"
mx="xs"
className="print-hide"
style={{
position: "absolute",
top: 8,

View File

@ -1,12 +1,23 @@
@media print {
.mantine-AppShell-header,
.mantine-AppShell-navbar,
.mantine-AppShell-aside{
display: none !important;
}
.mantine-AppShell-header,
.mantine-AppShell-navbar,
.mantine-AppShell-aside,
.print-hide,
.drag-handle {
display: none !important;
}
.mantine-AppShell-main {
padding-top: 0 !important;
min-height: auto !important;
}
.mantine-AppShell-main {
padding-top: 0 !important;
min-height: auto !important;
}
.ProseMirror-selectednode {
outline: none !important;
box-shadow: none !important;
}
.tableWrapper {
overflow: hidden !important;
}
}