Skip to content

Commit

Permalink
Fix new UI bug (#1325)
Browse files Browse the repository at this point in the history
  • Loading branch information
shaurya35 committed Sep 25, 2024
1 parent 5dd76ca commit 3555bf3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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">
<div className="flex flex-col gap-4">
<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-44">
<BreadCrumbComponent
course={course}
contentType={contentType}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export function Sidebar({

return (
<>
<Button onClick={() => setSidebarOpen((s) => !s)} className="w-fit gap-2">
<Button onClick={() => setSidebarOpen((s) => !s)} className="w-fit gap-2 xl:absolute">
{sidebarOpen ? <X className="size-5" /> : <Menu className="size-5" />}
<span>{sidebarOpen ? 'Hide Contents' : 'Show Contents'}</span>
</Button>
Expand Down

0 comments on commit 3555bf3

Please sign in to comment.