mirror of
https://github.com/fallenbagel/jellyseerr.git
synced 2026-01-01 04:08:45 -05:00
fix(frontend): only animate titlecard when showDetail is true
This commit is contained in:
@@ -76,7 +76,9 @@ const TitleCard: React.FC<TitleCardProps> = ({
|
|||||||
onCancel={closeModal}
|
onCancel={closeModal}
|
||||||
/>
|
/>
|
||||||
<div
|
<div
|
||||||
className="transition duration-300 transform scale-100 outline-none cursor-default titleCard hover:scale-105 focus:scale-105"
|
className={`transition duration-300 transform scale-100 outline-none cursor-default titleCard ${
|
||||||
|
showDetail ? 'scale-105' : ''
|
||||||
|
}`}
|
||||||
style={{
|
style={{
|
||||||
backgroundImage: `url(//image.tmdb.org/t/p/w300_and_h450_face${image})`,
|
backgroundImage: `url(//image.tmdb.org/t/p/w300_and_h450_face${image})`,
|
||||||
}}
|
}}
|
||||||
|
|||||||
Reference in New Issue
Block a user