Skip to content

Commit

Permalink
made sidebar header sticky
Browse files Browse the repository at this point in the history
  • Loading branch information
zenithexe committed Aug 30, 2024
1 parent 390d08c commit bc46af8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export function Sidebar({
<>
{sidebarOpen && (
<div className="no-scrollbar absolute z-20 m-4 h-full w-[300px] min-w-[300px] cursor-pointer self-start overflow-y-scroll scroll-smooth rounded-lg border bg-gray-50 dark:bg-[#020817] sm:sticky sm:top-[64px] sm:h-sidebar">
<div className="flex items-center justify-between border-b p-4">
<div className="flex items-center justify-between border-b p-4 sticky top-0 bg-background">
<h4 className="text-lg dark:text-[#F8FAFC]">Course Content</h4>
<div
onClick={() => {
Expand Down

0 comments on commit bc46af8

Please sign in to comment.