Skip to content

Commit

Permalink
fix result of pdf print for android
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuszciaston committed Nov 22, 2024
1 parent 7765b5e commit 12779e9
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion src/index.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
@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;
}
}

0 comments on commit 12779e9

Please sign in to comment.