Update proxmox-dashboard.tsx

This commit is contained in:
MacRimi
2025-10-23 20:29:39 +02:00
parent 2cd603357d
commit ebb29ad04b

View File

@@ -135,7 +135,7 @@ export function ProxmoxDashboard() {
if (currentScrollY < 100) { if (currentScrollY < 100) {
setShowNavigation(true) setShowNavigation(true)
} else if (currentScrollY > lastScrollY + 12) { } else if (currentScrollY > lastScrollY + 10) {
// Scrolling down - hide navigation // Scrolling down - hide navigation
setShowNavigation(false) setShowNavigation(false)
} else if (currentScrollY < lastScrollY - 14) { } else if (currentScrollY < lastScrollY - 14) {
@@ -317,7 +317,7 @@ export function ProxmoxDashboard() {
<div <div
className={`sticky z-40 bg-background transition-all duration-300 ease-in-out ${ className={`sticky z-40 bg-background transition-all duration-300 ease-in-out ${
showNavigation ? "top-[100px] md:top-[88px]" : "-top-[100px] md:top-[88px] md:-translate-y-[120%]" showNavigation ? "top-[280px] md:top-[88px]" : "-top-[100px] md:top-[88px] md:-translate-y-[120%]"
}`} }`}
> >
<div className="container mx-auto px-4 md:px-6 pt-4 md:pt-6"> <div className="container mx-auto px-4 md:px-6 pt-4 md:pt-6">