Skip to content

Commit 47cca0b

Browse files
committed
Increase default height of the PDF preview container from 250px to 280px and so Chromium-based browsers display the PDF toolbar by default. Fixes #1165.
1 parent 98b8c5b commit 47cca0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/label_system/dialog.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@
135135

136136
{% block additional_content %}
137137
{% if pdf_data %}
138-
<div class="card mt-2 p-1 border-secondary" style="resize: vertical; overflow: scroll; height: 250px">
139-
<object id="pdf_preview" data="{{ pdf_data | data_uri(mime='application/pdf') }}"style="height: inherit">
138+
<div class="card mt-2 p-1 border-secondary" style="resize: vertical; overflow: scroll; height: 280px">
139+
<object id="pdf_preview" data="{{ pdf_data | data_uri(mime='application/pdf') }}" style="height: inherit">
140140
</object>
141141
</div>
142142
{% endif %}

0 commit comments

Comments
 (0)