Skip to content

Commit 1453313

Browse files
committed
fix community navbar
1 parent f20ebd5 commit 1453313

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/layouts/SidebarLayout.res

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ module Sidebar = {
145145
id="sidebar"
146146
className={(
147147
isOpen ? "fixed w-full left-0 h-full z-20 min-w-320" : "hidden "
148-
) ++ " md:block md:w-48 md:-ml-4 lg:w-1/5 h-auto md:relative overflow-y-visible bg-white mt-28 md:mt-0 min-w-48"}
148+
) ++ " md:block md:w-48 md:-ml-4 lg:w-1/5 h-auto md:relative overflow-y-visible mt-10 pt-2 bg-white md:mt-0 min-w-48"}
149149
>
150150
<aside
151151
id="sidebar-content"
@@ -339,8 +339,8 @@ let make = (
339339
<div
340340
id="mobile-navbar"
341341
className={`z-10 fixed border-b shadow ${isDocRoute(~route=pathname)
342-
? "top-[112px]"
343-
: "top-[64px]"} left-0 pl-4 bg-white w-full py-4 md:relative md:border-none md:shadow-none md:p-0 md:top-auto flex items-center transition duration-300 ease-out group-[.nav-disappear]:-translate-y-64 md:group-[.nav-disappear]:-translate-y-0`}
342+
? "top-28"
343+
: "top-16"} left-0 pl-4 bg-white w-full py-4 md:relative md:border-none md:shadow-none md:p-0 md:top-auto flex items-center transition duration-300 ease-out group-[.nav-disappear]:-translate-y-64 md:group-[.nav-disappear]:-translate-y-0 z-25`}
344344
>
345345
<MobileDrawerButton hidden=isNavOpen onClick={handleDrawerButtonClick} />
346346
<div

0 commit comments

Comments
 (0)