Skip to content

Commit

Permalink
fix: Fix the positioning of the favourited star
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedBassem committed Feb 28, 2024
1 parent 3a1ee94 commit 2fa7177
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions packages/web/app/dashboard/bookmarks/components/LinkCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,6 @@ export default function LinkCard({

return (
<ImageCard className={cn(className, "row-span-2")}>
{bookmark.favourited && (
<Star
className="absolute m-1 size-8 rounded bg-gray-100 p-1"
color="#ebb434"
fill="#ebb434"
/>
)}
<Link href={link.url}>
<ImageCardBanner src={isCrawling ? "/blur.avif" : image} />
</Link>
Expand All @@ -93,7 +86,16 @@ export default function LinkCard({
{parsedUrl.host}
</Link>
</div>
<BookmarkOptions bookmark={bookmark} />
<div className="flex">
{bookmark.favourited && (
<Star
className="m-1 size-8 rounded p-1"
color="#ebb434"
fill="#ebb434"
/>
)}
<BookmarkOptions bookmark={bookmark} />
</div>
</div>
</ImageCardFooter>
</ImageCardContent>
Expand Down

0 comments on commit 2fa7177

Please sign in to comment.