Skip to content

Commit

Permalink
fix: Barcode rendering in server side printing (backport #15383) (#15384
Browse files Browse the repository at this point in the history
)

Co-authored-by: Suraj Shetty <surajshetty3416@gmail.com>
Co-authored-by: gavin <gavin18d@gmail.com>
Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
  • Loading branch information
4 people committed Dec 21, 2021
1 parent 5389e7e commit c4a714e
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions frappe/public/scss/print.bundle.scss
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
@import "frappe/public/css/bootstrap.css";
@import './common/quill';
@import "./common/quill";
@import "./desk/css_variables";


// .print-format {
// .ql-snow .ql-editor {
// height: auto;
// min-height: 0;
// // max-height: 0;
// }
// }

// !! PDF Barcode hack !!
// Workaround for rendering barcodes prior to https://github.com/frappe/frappe/pull/15307
@media print {
svg[data-barcode-value] > rect {
fill: white !important;
}
svg[data-barcode-value] > g {
fill: black !important;
}
}

0 comments on commit c4a714e

Please sign in to comment.