From 12779e9e3a95e29c05e1d7d8b0ffed0ece1633d3 Mon Sep 17 00:00:00 2001 From: Mariusz Date: Fri, 22 Nov 2024 11:44:59 +0100 Subject: [PATCH] fix result of pdf print for android --- src/index.css | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/src/index.css b/src/index.css index bd6213e..361c254 100644 --- a/src/index.css +++ b/src/index.css @@ -1,3 +1,26 @@ @tailwind base; @tailwind components; -@tailwind utilities; \ No newline at end of file +@tailwind utilities; + +@media print { + @page { + margin: 0; + } + + header, + main #input-section, + footer { + display: none !important; + } + + #preview-section { + position: absolute; + top: 0; + left: 0; + width: 210mm; + height: 297mm; + + -webkit-print-color-adjust: exact; + print-color-adjust: exact; + } +}