diff --git a/stirling-pdf/src/main/resources/templates/fragments/common.html b/stirling-pdf/src/main/resources/templates/fragments/common.html index 40a4389af..4de2a8838 100644 --- a/stirling-pdf/src/main/resources/templates/fragments/common.html +++ b/stirling-pdf/src/main/resources/templates/fragments/common.html @@ -31,7 +31,9 @@ const browserZoom = currentDPR / systemDPR; // Counter-scale to maintain same visual size - const navScale = 1.1 / currentDPR; + const isMobile = window.innerWidth <= 768 || /Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent); + const baseScale = isMobile ? 2 : 1.1; // 180% bigger on mobile (1 + 1.8 = 2.8, but 1.98 accounts for counter-scaling) + const navScale = baseScale / currentDPR; // Dropdowns at 100% (no additional scaling) const dropdownScale = 1.0;