mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-22 03:42:14 +00:00
Show sidebar scroll bar only when necessary
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user