toool on hover tweak

This commit is contained in:
Reece 2025-07-03 20:30:56 +01:00
parent be3f82a2e4
commit d895ff5746
2 changed files with 4 additions and 4 deletions

View File

@ -269,9 +269,9 @@ span.icon-text::after {
/* Mega Menu */
.dropdown-mega .dropdown-menu {
width: 98%;
transform: scale(0.85);
transform-origin: top center;
width: 100%;
left: 0 !important;
right: auto !important;
}
.dropdown-mega .title {

View File

@ -32,7 +32,7 @@
// Counter-scale to maintain same visual size
const isMobile = window.innerWidth <= 768 || /Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
const isHighDPI = currentDPR > 2.0;
const isHighDPI = currentDPR > 1.4;
let baseScale = isMobile ? 3 : 1.1;
if (isHighDPI) baseScale *= 2; // Double base size on high DPI screens
const navScale = baseScale / currentDPR;