Labels now do not break page if the content gets too long.

This fixes issue #65.
This commit is contained in:
Jan Böhmer 2022-09-25 02:57:32 +02:00
parent 86c580f835
commit 25475b5571
2 changed files with 20 additions and 1 deletions

View file

@ -13,7 +13,7 @@
</head>
<body>
{% for element in elements %}
<div style="page-break-inside: avoid; page-break-before: avoid; {% if not loop.last %}page-break-after: always;{% endif %}">
<div class="page">
{% if options.barcodeType == 'none' %}
{% include "LabelSystem/labels/label_page_none.html.twig" %}
{% elseif options.barcodeType in ['qr', 'datamatrix'] %}