1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-05 18:52:44 +01:00

Down the scale factor to 0.5 for mobile devices

This commit is contained in:
Benjamin Beganović 2020-07-29 16:36:27 +02:00
parent 745bca2889
commit c855a52506

View File

@ -17,6 +17,12 @@ class PDF {
this.maxPages = 1;
this.currentScale = 1.75;
this.currentScaleText = document.getElementById('zoom-level');
if (matchMedia('only screen and (max-width: 480px)').matches) {
this.currentScale = 1;
}
this.currentScaleText.textContent = this.currentScale * 100 + '%';
}
handlePreviousPage() {