Skip to content

Commit

Permalink
fix content duration position
Browse files Browse the repository at this point in the history
  • Loading branch information
C0dewithLokesh committed Aug 20, 2024
1 parent f33a315 commit 88972d0
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/components/ContentCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,6 @@ export const ContentCard = ({
<CheckCircle2 color="green" size={30} fill="lightgreen" />
</div>
)}
{type === 'video' && (
<div className="text-blue-900g absolute bottom-12 right-2 z-10 rounded-md bg-zinc-900 p-1 px-2 font-semibold text-white">
{contentDuration && formatTime(contentDuration)}
</div>
)}
{type !== 'video' && (
<div className="relative overflow-hidden rounded-md">
<CardComponent
Expand Down Expand Up @@ -72,6 +67,9 @@ export const ContentCard = ({
// 'https://d2szwvl7yo497w.cloudfront.net/courseThumbnails/video.png'
// }
/>
<div className="text-blue-900g absolute bottom-4 right-4 z-10 rounded-md bg-zinc-900 p-1 px-2 font-semibold text-white">
{contentDuration && formatTime(contentDuration)}
</div>
</div>
)}

Expand Down

0 comments on commit 88972d0

Please sign in to comment.