diff --git a/apps/client/src/features/editor/components/drawio/drawio-view.tsx b/apps/client/src/features/editor/components/drawio/drawio-view.tsx index 468e26a0..bb901044 100644 --- a/apps/client/src/features/editor/components/drawio/drawio-view.tsx +++ b/apps/client/src/features/editor/components/drawio/drawio-view.tsx @@ -145,6 +145,7 @@ export default function DrawioView(props: NodeViewProps) { variant="default" color="gray" mx="xs" + className="print-hide" style={{ position: "absolute", top: 8, diff --git a/apps/client/src/features/editor/components/excalidraw/excalidraw-view.tsx b/apps/client/src/features/editor/components/excalidraw/excalidraw-view.tsx index d898e5a2..35d8de94 100644 --- a/apps/client/src/features/editor/components/excalidraw/excalidraw-view.tsx +++ b/apps/client/src/features/editor/components/excalidraw/excalidraw-view.tsx @@ -183,6 +183,7 @@ export default function ExcalidrawView(props: NodeViewProps) { variant="default" color="gray" mx="xs" + className="print-hide" style={{ position: "absolute", top: 8, diff --git a/apps/client/src/features/editor/styles/print.css b/apps/client/src/features/editor/styles/print.css index 6fb6436d..c63e376b 100644 --- a/apps/client/src/features/editor/styles/print.css +++ b/apps/client/src/features/editor/styles/print.css @@ -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; + } }