mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-11-18 03:26:17 +00:00
Update proxmox-dashboard.tsx
This commit is contained in:
@@ -135,10 +135,10 @@ export function ProxmoxDashboard() {
|
|||||||
|
|
||||||
if (currentScrollY < 100) {
|
if (currentScrollY < 100) {
|
||||||
setShowNavigation(true)
|
setShowNavigation(true)
|
||||||
} else if (currentScrollY > lastScrollY + 20) {
|
} else if (currentScrollY > lastScrollY + 14) {
|
||||||
// Scrolling down - hide navigation
|
// Scrolling down - hide navigation
|
||||||
setShowNavigation(false)
|
setShowNavigation(false)
|
||||||
} else if (currentScrollY < lastScrollY - 18) {
|
} else if (currentScrollY < lastScrollY - 16) {
|
||||||
// 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-[100px] md:top-[88px] z-40 bg-background transition-transform duration-300 ease-in-out ${
|
className={`sticky top-[180px] 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%]"
|
||||||
}`}
|
}`}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user