Skip to content

Commit

Permalink
Merge pull request #1742 from Vinit1014/feature/contents
Browse files Browse the repository at this point in the history
Modify sidebar content UI
  • Loading branch information
devsargam authored Feb 14, 2025
2 parents 1f21d01 + dd1928f commit ce305ff
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions src/components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -204,22 +204,20 @@ export function Sidebar({
}
>
<div className="flex w-full items-center justify-between gap-2">
<div className="flex items-center gap-2">
<div className="flex gap-2">
{content.type === 'video' && <Check content={content} />}
{content.type === 'video' && <Play className="size-4" />}
{content.type === 'notion' && <File className="size-4" />}
</div>
<div>
{content.title}
</div>
{content.type === 'video' && (
<div className="flex gap-2">
{content.type === 'video' && <Check content={content} />}
{content.type === 'video' && <Play className="size-4" />}
{content.type === 'notion' && <File className="size-4" />}
</div>
<div className="grow">{content.title}</div>
{content.type === 'video' && (
<div className="flex-none">
<BookmarkButton
bookmark={content.bookmark ?? null}
contentId={content.id}
/>
)}
</div>
</div>
)}
</div>
</Link>
);
Expand Down

0 comments on commit ce305ff

Please sign in to comment.