mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-09-08 17:51:20 +02:00
fix the dropdown problems on mobile nav
This commit is contained in:
parent
64d4d33a0d
commit
873156c4a6
@ -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 = '';
|
||||
|
@ -30,10 +30,6 @@ See https://github.com/adobe-type-tools/cmap-resources
|
||||
<meta name="google" content="notranslate">
|
||||
<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/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>
|
||||
</head>
|
||||
|
||||
<body tabindex="1" style="overflow: hidden;">
|
||||
<body tabindex="1">
|
||||
<th:block th:insert="~{fragments/navbar.html :: navbar}"></th:block>
|
||||
<div id="outerContainer">
|
||||
<div id="sidebarContainer">
|
||||
|
Loading…
Reference in New Issue
Block a user