fix(frontend): fix scaling titlecard content position

This commit is contained in:
sct
2020-12-24 21:46:03 +09:00
parent 06fc98b6b9
commit bd947409e6

View File

@@ -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%)',