fix nav links when js disabled
This commit is contained in:
parent
e70ad03461
commit
1751bbb0f8
@ -48,7 +48,7 @@ const Nav = ({ isClient, internalLinks, className }) => {
|
|||||||
</li>
|
</li>
|
||||||
))}
|
))}
|
||||||
</ul>
|
</ul>
|
||||||
{internalLinks && currentBreakpoint === "LG" && <>|</>}
|
{internalLinks && currentBreakpoint !== "XS" && <>|</>}
|
||||||
{currentBreakpoint === "XS" && (
|
{currentBreakpoint === "XS" && (
|
||||||
<button
|
<button
|
||||||
className="mx-2 hover:underline inline-flex align-middle"
|
className="mx-2 hover:underline inline-flex align-middle"
|
||||||
@ -62,11 +62,11 @@ const Nav = ({ isClient, internalLinks, className }) => {
|
|||||||
Links
|
Links
|
||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
{(currentBreakpoint === "LG" || linksMenu) && (
|
{(currentBreakpoint !== "XS" || linksMenu) && (
|
||||||
<ul
|
<ul
|
||||||
className={classnames(
|
className={classnames(
|
||||||
"z-30",
|
"z-30",
|
||||||
currentBreakpoint === "LG"
|
currentBreakpoint !== "XS"
|
||||||
? "inline-flex flex-wrap justify-center"
|
? "inline-flex flex-wrap justify-center"
|
||||||
: "absolute p-2 rounded-md mt-2",
|
: "absolute p-2 rounded-md mt-2",
|
||||||
currentBreakpoint === "XS" &&
|
currentBreakpoint === "XS" &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user