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 */ /* Mega Menu */
.dropdown-mega .dropdown-menu { .dropdown-mega .dropdown-menu {
width: 98%; width: 100%;
transform: scale(0.85); left: 0 !important;
transform-origin: top center; right: auto !important;
} }
.dropdown-mega .title { .dropdown-mega .title {

View File

@ -32,7 +32,7 @@
// Counter-scale to maintain same visual size // 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 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; let baseScale = isMobile ? 3 : 1.1;
if (isHighDPI) baseScale *= 2; // Double base size on high DPI screens if (isHighDPI) baseScale *= 2; // Double base size on high DPI screens
const navScale = baseScale / currentDPR; const navScale = baseScale / currentDPR;