Skip to content

Commit

Permalink
Made the breadcrumb sticky (code100x#1473)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jatin123lodhi authored Oct 20, 2024
1 parent a055e68 commit 5802927
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/CourseView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ export const CourseView = ({
? 'folder'
: courseContent?.value.type;
return (
<div className="flex w-full flex-col gap-8 pb-16 pt-8 xl:pt-[9px]">
<div className="flex flex-col gap-4 xl:pt-2">
<div className="flex w-full flex-col gap-8 pb-16 pt-8 xl:pt-[9px] relative">
<div className="flex flex-col gap-4 xl:pt-2 sticky z-10 top-[120px] py-2 bg-background">
<BreadCrumbComponent
course={course}
contentType={contentType}
Expand Down
4 changes: 2 additions & 2 deletions src/components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export function Sidebar({
);

return (
<>
<div className='sticky top-[72px] z-20 bg-background py-2'>
<Button
ref={buttonRef}
onClick={() => setSidebarOpen((s) => !s)}
Expand Down Expand Up @@ -223,7 +223,7 @@ export function Sidebar({
</motion.div>
)}
</AnimatePresence>
</>
</div>
);
}

Expand Down

0 comments on commit 5802927

Please sign in to comment.