Skip to content

Commit 9289f22

Browse files
fix: print background images
1 parent 26c6d80 commit 9289f22

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

packages/app/src/pages/print/BookingLabelsPage.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,8 @@ onMounted(() => {
6262
break-after: page;
6363
}
6464
}
65+
body {
66+
-webkit-print-color-adjust: exact;
67+
print-color-adjust: exact; /* For Firefox */
68+
}
6569
</style>

packages/app/src/pages/print/KennelLayout.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,4 +174,8 @@ onMounted(async () => {
174174
margin: 15mm;
175175
}
176176
}
177+
body {
178+
-webkit-print-color-adjust: exact;
179+
print-color-adjust: exact; /* For Firefox */
180+
}
177181
</style>

packages/app/src/pages/print/OverviewPage.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,10 @@ onMounted(async () => {
186186
padding: 0;
187187
}
188188
}
189+
body {
190+
-webkit-print-color-adjust: exact;
191+
print-color-adjust: exact; /* For Firefox */
192+
}
189193
.q-card {
190194
--at-apply: bg-transparent outline-solid outline-black outline-1px;
191195
}

packages/app/src/pages/print/PetLabelsPage.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,8 @@ onMounted(() => {
7171
break-after: page;
7272
}
7373
}
74+
body {
75+
-webkit-print-color-adjust: exact;
76+
print-color-adjust: exact; /* For Firefox */
77+
}
7478
</style>

0 commit comments

Comments
 (0)