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:
parent
745bca2889
commit
c855a52506
6
resources/js/clients/shared/pdf.js
vendored
6
resources/js/clients/shared/pdf.js
vendored
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user