This commit is contained in:
2026-05-16 11:11:03 +01:00
parent 2123027e49
commit f094cb8dae
+2 -1
View File
@@ -1043,11 +1043,12 @@ function AppContent() {
: route.page === 'viewers' : route.page === 'viewers'
? '/viewers' ? '/viewers'
: window.location.pathname : window.location.pathname
const shouldShowFloatingNav = route.page !== 'home' || showFloatingNav
return ( return (
<main className="min-h-screen bg-bg text-text"> <main className="min-h-screen bg-bg text-text">
<header <header
className={`fixed inset-x-0 top-4 z-50 flex justify-center px-4 transition duration-300 ${showFloatingNav className={`fixed inset-x-0 top-4 z-50 flex justify-center px-4 transition duration-300 ${shouldShowFloatingNav
? 'translate-y-0 opacity-100' ? 'translate-y-0 opacity-100'
: 'pointer-events-none -translate-y-8 opacity-0' : 'pointer-events-none -translate-y-8 opacity-0'
}`} }`}