From 873156c4a680d03e078e557695b78daddad37d97 Mon Sep 17 00:00:00 2001 From: Ethan Date: Fri, 11 Jul 2025 15:24:16 +0100 Subject: [PATCH] fix the dropdown problems on mobile nav --- .../src/main/resources/templates/fragments/common.html | 4 ++-- stirling-pdf/src/main/resources/templates/view-pdf.html | 6 +----- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/stirling-pdf/src/main/resources/templates/fragments/common.html b/stirling-pdf/src/main/resources/templates/fragments/common.html index 2d6e0fba9..af6b7cfac 100644 --- a/stirling-pdf/src/main/resources/templates/fragments/common.html +++ b/stirling-pdf/src/main/resources/templates/fragments/common.html @@ -31,8 +31,8 @@ const isHighDPI = systemDPR > 1.4; function scaleNav() { - if (window.innerWidth < 1200) { - // Reset/remove scaling on mobile + if (window.innerWidth < 800) { + // Reset/remove scaling on mobile devices const navbarElement = document.querySelector('.navbar'); if (navbarElement) { navbarElement.style.transform = ''; diff --git a/stirling-pdf/src/main/resources/templates/view-pdf.html b/stirling-pdf/src/main/resources/templates/view-pdf.html index 5851e85bd..31154eb55 100644 --- a/stirling-pdf/src/main/resources/templates/view-pdf.html +++ b/stirling-pdf/src/main/resources/templates/view-pdf.html @@ -30,10 +30,6 @@ See https://github.com/adobe-type-tools/cmap-resources PDF.js viewer - - - - @@ -45,7 +41,7 @@ See https://github.com/adobe-type-tools/cmap-resources - +