mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-11-18 11:36:17 +00:00
Update proxmox-dashboard.tsx
This commit is contained in:
@@ -138,7 +138,7 @@ export function ProxmoxDashboard() {
|
||||
} else if (currentScrollY > lastScrollY + 20) {
|
||||
// Scrolling down - hide navigation
|
||||
setShowNavigation(false)
|
||||
} else if (currentScrollY < lastScrollY - 20) {
|
||||
} else if (currentScrollY < lastScrollY - 18) {
|
||||
// Scrolling up - show navigation
|
||||
setShowNavigation(true)
|
||||
}
|
||||
@@ -316,7 +316,7 @@ export function ProxmoxDashboard() {
|
||||
</header>
|
||||
|
||||
<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%]"
|
||||
}`}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user