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:
@@ -144,7 +144,7 @@ export function ProxmoxDashboard() {
|
|||||||
// Oculta en cuanto se detecta desplazamiento hacia abajo
|
// Oculta en cuanto se detecta desplazamiento hacia abajo
|
||||||
else if (delta > 2) {
|
else if (delta > 2) {
|
||||||
if (hideTimeout) clearTimeout(hideTimeout)
|
if (hideTimeout) clearTimeout(hideTimeout)
|
||||||
hideTimeout = setTimeout(() => setShowNavigation(false), 50)
|
hideTimeout = setTimeout(() => setShowNavigation(false), 20)
|
||||||
}
|
}
|
||||||
// Muestra al mover un poco hacia arriba
|
// Muestra al mover un poco hacia arriba
|
||||||
else if (delta < -2) {
|
else if (delta < -2) {
|
||||||
@@ -330,7 +330,7 @@ export function ProxmoxDashboard() {
|
|||||||
<div
|
<div
|
||||||
className={`sticky z-40 bg-background
|
className={`sticky z-40 bg-background
|
||||||
top-[120px] md:top-[76px]
|
top-[120px] md:top-[76px]
|
||||||
transition-all duration-700 ease-[cubic-bezier(0.4,0,0.2,1)]
|
transition-all duration-600 ease-[cubic-bezier(0.4,0,0.2,1)]
|
||||||
${showNavigation
|
${showNavigation
|
||||||
? "translate-y-0 opacity-100"
|
? "translate-y-0 opacity-100"
|
||||||
: "-translate-y-[120%] opacity-0 pointer-events-none"}
|
: "-translate-y-[120%] opacity-0 pointer-events-none"}
|
||||||
|
|||||||
Reference in New Issue
Block a user