Skip to content

Commit

Permalink
Fix: Side scroll individually and hidden scrollbar
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyas0924 committed Feb 22, 2024
1 parent 86975d3 commit bb69aa2
Show file tree
Hide file tree
Showing 3 changed files with 187 additions and 555 deletions.
9 changes: 9 additions & 0 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,15 @@
bottom: 100%;
left: 50%;
transform: translateX(-50%);
}

/* Hide scrollbar for Chrome, Safari and Opera */
.hide-scrollbar::-webkit-scrollbar {
display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.hide-scrollbar {
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
5 changes: 4 additions & 1 deletion src/components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,10 @@ export function Sidebar({
}

return (
<div className="w-84" style={{ width: '300px' }}>
<div
className="w-84 self-start sticky overflow-y-auto h-screen hide-scrollbar"
style={{ width: '300px' }}
>
<div className="overflow-scroll min-h-screen overflow-y-auto bg-gray-50 dark:bg-gray-800 cursor-pointer w-full sticky top-[64px] self-start w-84">
<div className="flex">
{/* <ToggleButton
Expand Down
Loading

0 comments on commit bb69aa2

Please sign in to comment.