Skip to content

Commit

Permalink
fix(frontend): fix scaling titlecard content position
Browse files Browse the repository at this point in the history
  • Loading branch information
sct committed Dec 24, 2020
1 parent 06fc98b commit bd94740
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/TitleCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,10 @@ const TitleCard: React.FC<TitleCardProps> = ({
leaveFrom="opacity-100"
leaveTo="opacity-0"
>
<div className="absolute top-0 left-0 right-0 bottom-0">
<div className="absolute top-0 bottom-0 left-0 right-0">
<Link href={mediaType === 'movie' ? `/movie/${id}` : `/tv/${id}`}>
<a
className="absolute w-full h-full overflow-hidden text-left rounded-lg cursor-pointer"
className="absolute top-0 bottom-0 left-0 right-0 w-full h-full overflow-hidden text-left rounded-lg cursor-pointer"
style={{
background:
'linear-gradient(180deg, rgba(45, 55, 72, 0.4) 0%, rgba(45, 55, 72, 0.9) 100%)',
Expand Down

0 comments on commit bd94740

Please sign in to comment.