From 6e86275dce3accf6a930745067cb08a8f6f08231 Mon Sep 17 00:00:00 2001 From: MacRimi Date: Thu, 23 Oct 2025 19:57:11 +0200 Subject: [PATCH] Update proxmox-dashboard.tsx --- AppImage/components/proxmox-dashboard.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/AppImage/components/proxmox-dashboard.tsx b/AppImage/components/proxmox-dashboard.tsx index 643a54f..264a444 100644 --- a/AppImage/components/proxmox-dashboard.tsx +++ b/AppImage/components/proxmox-dashboard.tsx @@ -133,13 +133,12 @@ export function ProxmoxDashboard() { const handleScroll = () => { const currentScrollY = window.scrollY - // Only hide navigation if scrolled down more than 100px if (currentScrollY < 100) { setShowNavigation(true) - } else if (currentScrollY > lastScrollY) { + } else if (currentScrollY > lastScrollY + 20) { // Scrolling down - hide navigation setShowNavigation(false) - } else if (currentScrollY < lastScrollY) { + } else if (currentScrollY < lastScrollY - 20) { // Scrolling up - show navigation setShowNavigation(true) } @@ -317,7 +316,7 @@ export function ProxmoxDashboard() {