Update proxmox-dashboard.tsx

This commit is contained in:
MacRimi
2025-10-23 20:04:56 +02:00
parent 6e86275dce
commit 5b0572879d

View File

@@ -138,7 +138,7 @@ export function ProxmoxDashboard() {
} else if (currentScrollY > lastScrollY + 20) { } else if (currentScrollY > lastScrollY + 20) {
// Scrolling down - hide navigation // Scrolling down - hide navigation
setShowNavigation(false) setShowNavigation(false)
} else if (currentScrollY < lastScrollY - 20) { } else if (currentScrollY < lastScrollY - 18) {
// Scrolling up - show navigation // Scrolling up - show navigation
setShowNavigation(true) setShowNavigation(true)
} }
@@ -316,7 +316,7 @@ export function ProxmoxDashboard() {
</header> </header>
<div <div
className={`sticky top-[160px] md:top-[88px] z-40 bg-background transition-transform duration-300 ease-in-out ${ className={`sticky top-[100px] md:top-[88px] z-40 bg-background transition-transform duration-300 ease-in-out ${
showNavigation ? "translate-y-0" : "-translate-y-[120%]" showNavigation ? "translate-y-0" : "-translate-y-[120%]"
}`} }`}
> >