Show sidebar scroll bar only when necessary

This commit is contained in:
Alexey Pyltsyn
2021-11-05 22:52:07 +03:00
parent ef8ec922d0
commit a8b2e6110e

View File

@@ -18,7 +18,7 @@ export function Page({routeTree, children}: PageProps) {
<MenuProvider>
<SidebarContext.Provider value={routeTree}>
<div className="h-auto lg:h-screen flex flex-row">
<div className="h-auto lg:h-full overflow-y-scroll fixed flex flex-row lg:flex-col py-0 top-0 left-0 right-0 lg:max-w-xs w-full shadow lg:shadow-none z-50">
<div className="h-auto lg:h-full overflow-y-auto fixed flex flex-row lg:flex-col py-0 top-0 left-0 right-0 lg:max-w-xs w-full shadow lg:shadow-none z-50">
<Nav />
<Sidebar />
</div>