Skip to content

Commit 4b4ea15

Browse files
authored
Vlk sidebar desktop (#1036)
* Cleanup nav style and add back nav collapse on mobile * fix sidebar top margin on desktop
1 parent 3a9b9b7 commit 4b4ea15

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/Navigation.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ module MobileNav = {
7171
}
7272
}
7373

74-
/* isOverlayOpen: if the mobile overlay is toggled open */
74+
/* isOverlayOpen: if the mobile sidebar is toggled open */
7575
@react.component
7676
let make = (~fixed=true, ~isOverlayOpen: bool, ~setOverlayOpen: (bool => bool) => unit) => {
7777
let minWidth = "20rem"

src/layouts/SidebarLayout.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ module Sidebar = {
141141
}}
142142
className={(
143143
isOpen ? "fixed w-full left-0 h-full z-20 min-w-320" : "hidden "
144-
) ++ " overflow-x-hidden md:block md:w-48 md:-ml-4 lg:w-1/5 md:h-auto md:relative overflow-y-visible bg-white"}>
144+
) ++ " overflow-x-hidden md:block md:w-48 md:-ml-4 lg:w-1/5 md:h-auto md:relative overflow-y-visible bg-white mt-28 md:mt-0"}>
145145
<aside
146146
id="sidebar-content"
147147
className="relative top-0 px-4 w-full block md:top-16 md:pt-4 md:sticky border-r border-gray-20 overflow-y-auto pb-24"

0 commit comments

Comments
 (0)