Skip to content

Commit

Permalink
Merge pull request #99 from daiagi/fix/sidebar-scroll
Browse files Browse the repository at this point in the history
Fix/sidebar-scroll
  • Loading branch information
poppyseedDev authored Mar 27, 2024
2 parents 34ad081 + 897c64e commit 239a1f3
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/app/(App)/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,13 @@ const Navbar: FC<NavbarProps> = ({ navigation, children }) => {
const toggleSidebar = () => setIsCollapsed(!isCollapsed)

return (
<>
<div className="min-h-full font-montserrat">
<div className="min-h-full font-montserrat">
<Disclosure as="nav" className="">
{({ open }) => (
<>
<div className="flex">
<div className="flex">
{/* Sidebar Section */}
<div
className={`fixed top-0 left-0 h-screen z-10 transition-width duration-300 ${isCollapsed ? 'w-16' : 'w-56'}`}
className={`fixed top-0 left-0 h-screen z-10 transition-width duration-300 ${isCollapsed ? 'w-16' : 'w-56 overflow-y-auto'}`}
>
<div className="flex-shrink-0 flex items-center justify-between space-x-5 border-b border-gray-9 pl-6 pr-2 py-6 mt-2">
{!isCollapsed && (
Expand Down Expand Up @@ -128,11 +126,9 @@ const Navbar: FC<NavbarProps> = ({ navigation, children }) => {
{children}
</div>
</div>
</>
)}
</Disclosure>
</div>
</>
)
}

Expand Down

0 comments on commit 239a1f3

Please sign in to comment.