fix
This commit is contained in:
+2
-1
@@ -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'
|
||||||
}`}
|
}`}
|
||||||
|
|||||||
Reference in New Issue
Block a user