fix when offset < 0

This commit is contained in:
Karol Wypchlo 2021-04-01 11:42:18 +02:00
parent 9dd311892f
commit cde554b5ec
1 changed files with 2 additions and 3 deletions

View File

@ -38,11 +38,10 @@ const Navigation = ({ mode }) => {
return (
<nav
className={classnames("relative px-8 transition-all duration-500", {
className={classnames("relative px-8 py-6 transition-all duration-500", {
"bg-white border-b border-palette-200": mode === "light",
"bg-palette-600 bg-opacity-50": mode === "dark",
"py-6 desktop:py-12": offsetY === 0,
"py-6": offsetY > 0,
"desktop:py-12": offsetY <= 0,
})}
ref={navRef}
>