mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-20 08:11:13 -05:00
Refactor RideForm image handling
This commit is contained in:
@@ -53,9 +53,9 @@ export function RideCard({ ride, showParkName = true, className }: RideCardProps
|
||||
<div className="relative overflow-hidden">
|
||||
{/* Image/Icon Section */}
|
||||
<div className="aspect-video bg-gradient-to-br from-primary/20 via-secondary/20 to-accent/20 flex items-center justify-center relative">
|
||||
{ride.image_url ? (
|
||||
{(ride.card_image_url || ride.image_url) ? (
|
||||
<img
|
||||
src={ride.image_url}
|
||||
src={ride.card_image_url || ride.image_url}
|
||||
alt={ride.name}
|
||||
className="w-full h-full object-cover group-hover:scale-110 transition-transform duration-500"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user