Refactor ride card text display

This commit is contained in:
gpt-engineer-app[bot]
2025-09-29 13:14:43 +00:00
parent 801e3a57f5
commit e6504c0951

View File

@@ -444,7 +444,8 @@ export default function ParkDetail() {
</p> </p>
)} )}
{/* Stats */} {/* Stats - Only show for roller coasters */}
{ride.category === 'roller_coaster' && (
<div className="flex items-center gap-2 flex-wrap"> <div className="flex items-center gap-2 flex-wrap">
{ride.max_speed_kmh && ( {ride.max_speed_kmh && (
<span className="bg-primary/10 text-primary px-2 py-1 rounded-md text-xs font-medium"> <span className="bg-primary/10 text-primary px-2 py-1 rounded-md text-xs font-medium">
@@ -462,6 +463,7 @@ export default function ParkDetail() {
</span> </span>
)} )}
</div> </div>
)}
</div> </div>
</CardContent> </CardContent>
</Card> </Card>