From 5abedc15dc5b4f234d496283575c361f993a05a6 Mon Sep 17 00:00:00 2001 From: MacRimi Date: Thu, 23 Oct 2025 18:41:37 +0200 Subject: [PATCH] Update proxmox-dashboard.tsx --- AppImage/components/proxmox-dashboard.tsx | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/AppImage/components/proxmox-dashboard.tsx b/AppImage/components/proxmox-dashboard.tsx index d09c631..5419ee8 100644 --- a/AppImage/components/proxmox-dashboard.tsx +++ b/AppImage/components/proxmox-dashboard.tsx @@ -1,7 +1,5 @@ "use client" -import type React from "react" - import { useState, useEffect, useMemo, useCallback } from "react" import { Badge } from "./ui/badge" import { Button } from "./ui/button" @@ -135,11 +133,11 @@ export function ProxmoxDashboard() { const handleScroll = () => { const currentScrollY = window.scrollY - // Only hide navigation if scrolled down more than 100px - if (currentScrollY < 100) { + if (currentScrollY < 50) { + // Show navigation when near top setShowNavigation(true) - } else if (currentScrollY > lastScrollY) { - // Scrolling down - hide navigation + } else if (currentScrollY > lastScrollY && currentScrollY > 100) { + // Scrolling down - hide navigation (only after 100px) setShowNavigation(false) } else if (currentScrollY < lastScrollY) { // Scrolling up - show navigation @@ -319,12 +317,16 @@ export function ProxmoxDashboard() {
-
+