Fix: Performance in Druckvorschau massiv verbessert, Hintergrundbild entfernt und Code-Duplikat bereinigt
All checks were successful
Docker Build & Push / build-and-push (push) Successful in 41s
All checks were successful
Docker Build & Push / build-and-push (push) Successful in 41s
This commit is contained in:
@@ -357,23 +357,45 @@ window.renderAllBarcodes = function() {
|
||||
|
||||
<style>
|
||||
@media print {
|
||||
body * {
|
||||
visibility: hidden;
|
||||
/* Hide everything in the body by default */
|
||||
body > *:not(.modal) {
|
||||
display: none !important;
|
||||
}
|
||||
body {
|
||||
/* Hide other modals */
|
||||
body > .modal:not(#printModal) {
|
||||
display: none !important;
|
||||
}
|
||||
/* Remove wallpaper overlay */
|
||||
body::before {
|
||||
display: none !important;
|
||||
content: none !important;
|
||||
}
|
||||
body, html {
|
||||
background: none !important;
|
||||
background-color: white !important;
|
||||
margin: 0 !important;
|
||||
padding: 0 !important;
|
||||
}
|
||||
#printModal, #printModal * {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
#printModal {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: block !important;
|
||||
opacity: 1 !important;
|
||||
position: static !important;
|
||||
background: white !important;
|
||||
}
|
||||
#printModal * {
|
||||
visibility: visible !important;
|
||||
}
|
||||
.modal-dialog {
|
||||
max-width: 100% !important;
|
||||
margin: 0 !important;
|
||||
padding: 0 !important;
|
||||
transform: none !important;
|
||||
}
|
||||
.modal-content {
|
||||
border: none !important;
|
||||
box-shadow: none !important;
|
||||
background: white !important;
|
||||
}
|
||||
.modal-header, .modal-footer, .d-print-none {
|
||||
display: none !important;
|
||||
@@ -384,18 +406,12 @@ window.renderAllBarcodes = function() {
|
||||
justify-content: flex-start !important;
|
||||
gap: 0 !important;
|
||||
width: 100% !important;
|
||||
margin: 0 !important;
|
||||
padding: 0 !important;
|
||||
}
|
||||
.print-item {
|
||||
display: inline-block !important;
|
||||
}
|
||||
.modal-dialog {
|
||||
max-width: 100%;
|
||||
margin: 0;
|
||||
}
|
||||
.modal-content {
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
.modal-backdrop {
|
||||
display: none !important;
|
||||
}
|
||||
@@ -443,25 +459,4 @@ window.renderAllBarcodes = function() {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php require_once 'footer.php'; ?>
|
||||
<img id="barcodeImage" src="" alt="QR Code" class="img-fluid border p-2 bg-white mb-3" style="max-width: 250px;">
|
||||
<div class="mt-2">
|
||||
<a id="barcodeLink" href="" target="_blank" class="btn btn-outline-primary btn-sm"><i class="fas fa-external-link-alt me-2"></i>Link manuell testen</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php require_once 'footer.php'; ?>
|
||||
?php require_once 'footer.php'; ?>
|
||||
<img id="barcodeImage" src="" alt="QR Code" class="img-fluid border p-2 bg-white mb-3" style="max-width: 250px;">
|
||||
<div class="mt-2">
|
||||
<a id="barcodeLink" href="" target="_blank" class="btn btn-outline-primary btn-sm"><i class="fas fa-external-link-alt me-2"></i>Link manuell testen</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php require_once 'footer.php'; ?>
|
||||
|
||||
Reference in New Issue
Block a user