Skip to content

Commit

Permalink
fix left navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
bacpactech committed Oct 1, 2024
1 parent 71381f0 commit efcdaa8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/(withLayout)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default function Layout({ children }: { children: React.ReactNode }) {
return (
<div className="flex gap-8 bg-surface-primary-50">
<div className="w-1/5 hidden md:block ">
<div className="fixed w-[288px] left-0 z-10 h-with-navbar overflow-y-auto">
<div className="fixed w-[288px] left-0 z-10 ">
<LeftNavbar />
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/organisms/LeftNavbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default function LeftNavbar() {
}
return (
<div className="pt-1 ">
<Card className="">
<Card className="h-with-navbar overflow-y-auto">
<div className="px-4 flex gap-4">
{renderProfile()}
<div>
Expand Down
2 changes: 1 addition & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ module.exports = {
function ({addUtilities}) {
addUtilities({
'.h-with-navbar': {
height: 'calc(100vh - 4rem)', // Replace 4rem with your actual navbar height
height: 'calc(100vh - 68px)',
},
});
},
Expand Down

0 comments on commit efcdaa8

Please sign in to comment.