Merge pull request #730 from mjaschen/fix/remove-text-artifacts-qrcode-error

Hide legend for QR Code size toggle when QR Code cannot be rendered
This commit is contained in:
Norbert Renner 2023-05-19 15:15:47 +02:00 committed by GitHub
commit 7acdd864f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -653,7 +653,7 @@
<p class="alert alert-danger hide" id="qrcode-msg-too-long" data-i18n="qrcode.msg-too-long">
Cannot create QR Code: Route definition is too long. Removing some waypoints may help fit
all data into the QRCode.
all data into the QR Code.
</p>
<p
class="alert alert-danger hide"
@ -661,17 +661,12 @@
data-i18n="qrcode.msg-unknown-error"
>
Cannot create QR Code: An unknown error occurred. See the browser console for details. Maybe
the route definition is too long. Removing some waypoints may help fit all data into the
QRCode.
the route definition is too long. Removing some waypoints may help fit all data into the QR
Code.
</p>
<div>
<div class="pull-left mr-2"><small>QR Code Size:</small></div>
<div
id="qrcode-buttons"
class="btn-group btn-group-xs"
role="group"
aria-label="Change size of QR Code"
>
<div id="qrcode-buttons">
<div class="mt-2"><small>QR Code Size:</small></div>
<div class="btn-group btn-group-xs" role="group" aria-label="Change size of QR Code">
<button
class="btn btn-secondary qrcode-size-button"
id="qrcode-create-small"