fix the dropdown problems on mobile nav

This commit is contained in:
Ethan 2025-07-11 15:24:16 +01:00
parent 64d4d33a0d
commit 873156c4a6
2 changed files with 3 additions and 7 deletions

View File

@ -31,8 +31,8 @@
const isHighDPI = systemDPR > 1.4; const isHighDPI = systemDPR > 1.4;
function scaleNav() { function scaleNav() {
if (window.innerWidth < 1200) { if (window.innerWidth < 800) {
// Reset/remove scaling on mobile // Reset/remove scaling on mobile devices
const navbarElement = document.querySelector('.navbar'); const navbarElement = document.querySelector('.navbar');
if (navbarElement) { if (navbarElement) {
navbarElement.style.transform = ''; navbarElement.style.transform = '';

View File

@ -30,10 +30,6 @@ See https://github.com/adobe-type-tools/cmap-resources
<meta name="google" content="notranslate"> <meta name="google" content="notranslate">
<title>PDF.js viewer</title> <title>PDF.js viewer</title>
<!-- Bootstrap -->
<script th:src="@{'/js/thirdParty/popper.min.js'}"></script>
<script th:src="@{'/js/thirdParty/bootstrap.min.js'}"></script>
<link rel="stylesheet" th:href="@{'/css/theme/componentes.css'}"> <link rel="stylesheet" th:href="@{'/css/theme/componentes.css'}">
<link rel="stylesheet" th:href="@{'/css/navbar.css'}"> <link rel="stylesheet" th:href="@{'/css/navbar.css'}">
@ -45,7 +41,7 @@ See https://github.com/adobe-type-tools/cmap-resources
<script th:src="@{'/pdfjs-legacy/js/viewer.mjs'}" type="module"></script> <script th:src="@{'/pdfjs-legacy/js/viewer.mjs'}" type="module"></script>
</head> </head>
<body tabindex="1" style="overflow: hidden;"> <body tabindex="1">
<th:block th:insert="~{fragments/navbar.html :: navbar}"></th:block> <th:block th:insert="~{fragments/navbar.html :: navbar}"></th:block>
<div id="outerContainer"> <div id="outerContainer">
<div id="sidebarContainer"> <div id="sidebarContainer">