mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-03 23:54:36 -04: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.maxPages = 1;
|
||||||
this.currentScale = 1.75;
|
this.currentScale = 1.75;
|
||||||
this.currentScaleText = document.getElementById('zoom-level');
|
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() {
|
handlePreviousPage() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user