diff --git a/components/LayoutWrapper.js b/components/LayoutWrapper.js index b8f588dc..f5633c43 100644 --- a/components/LayoutWrapper.js +++ b/components/LayoutWrapper.js @@ -17,6 +17,7 @@ const LayoutWrapper = ({ children }) => { const headerHeight = headerRef.current.scrollHeight const handleScroll = () => { const hasScrolledPasHeader = window.scrollY >= headerHeight + setScrolledPassedHeader(hasScrolledPasHeader) if (!hasScrolledPasHeader) { @@ -39,7 +40,7 @@ const LayoutWrapper = ({ children }) => { ref={headerRef} className={`sticky top-0 z-50 duration-150 ease-out ${ scrolledPassedHeader ? 'pointer-events-none' : `bg-io_${themeBg}-500` - } py-4 px-4 xl:bg-io_${themeBg}-500`} + } px-4 py-4 xl:bg-io_${themeBg}-500`} >
@@ -66,7 +67,10 @@ const LayoutWrapper = ({ children }) => {
-
+
{ { } return ( -
+