Skip to content

Commit 272310c

Browse files
committed
tidying up
1 parent 749171d commit 272310c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/layouts/SidebarLayout.res

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ module Sidebar = {
180180
>
181181
<aside
182182
id="sidebar-content"
183-
className="h-full relative top-0 px-4 w-full block md:top-28 md:sticky border-r border-gray-20 overflow-y-auto pb-24 max-h-[calc(100vh-7rem)]"
183+
className="h-full relative top-0 w-full block md:top-28 md:sticky border-r border-gray-20 overflow-y-auto pb-24 max-h-[calc(100vh-7rem)]"
184184
>
185185
<button
186186
onClick={evt => {
@@ -368,17 +368,18 @@ let make = (
368368
}
369369
<>
370370
<div
371-
className={"w-full mt-16 min-w-320 grid lg:justify-center max-w-1280 md:mx-10 md:mt-32 grid-cols-[auto_minmax(0px,1fr)] " ++
371+
className={"mt-16 min-w-320 grid max-w-1280 md:mt-32 grid-cols-[auto_minmax(0px,1fr)] justify-items-center md:mx-10 md:px-4 lg:px-24 " ++
372372
theme}
373373
>
374374
sidebar
375-
<main className="px-4 pt-4 md:pl-16 lg:mr-8 mb-32 md:max-w-576 lg:max-w-740">
376-
//width of the right content part
375+
// md:max-w-576 lg:max-w-740
376+
<main className="px-4 pt-4 md:pl-16 lg:mr-8 mb-32">
377+
// width of the right content part
377378
<div
378379
id="mobile-navbar"
379380
className={`z-10 fixed border-b shadow ${isDocRoute(~route=pathname)
380381
? "top-28"
381-
: "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`}
382+
: "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`}
382383
>
383384
<MobileDrawerButton hidden=isNavOpen onClick={handleDrawerButtonClick} />
384385
<div

0 commit comments

Comments
 (0)