mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-22 05:11:14 -05:00
Fix: Standardize card fields for consistency
This commit is contained in:
@@ -89,7 +89,7 @@ const OperatorCard = ({ company }: OperatorCardProps) => {
|
||||
|
||||
{company.headquarters_location && (
|
||||
<div className="flex items-center gap-1">
|
||||
<MapPin className="w-3 h-3 text-muted-foreground" />
|
||||
<MapPin className="w-3 h-3" />
|
||||
<span className="text-muted-foreground truncate">
|
||||
{company.headquarters_location}
|
||||
</span>
|
||||
@@ -97,17 +97,9 @@ const OperatorCard = ({ company }: OperatorCardProps) => {
|
||||
)}
|
||||
</div>
|
||||
|
||||
{/* Rating */}
|
||||
{company.average_rating > 0 && (
|
||||
<div className="flex items-center gap-1">
|
||||
<Star className="w-4 h-4 fill-yellow-400 text-yellow-400" />
|
||||
<span className="text-sm font-medium">{company.average_rating.toFixed(1)}</span>
|
||||
<span className="text-xs text-muted-foreground">({company.review_count} reviews)</span>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Park Count Stats */}
|
||||
<div className="flex flex-wrap gap-x-4 gap-y-1 text-sm">
|
||||
<div className="flex items-center justify-between text-sm">
|
||||
<div className="flex flex-wrap gap-x-4 gap-y-1">
|
||||
{company.park_count && company.park_count > 0 && (
|
||||
<div className="flex items-center gap-1">
|
||||
<Building className="w-3 h-3 text-muted-foreground" />
|
||||
@@ -115,6 +107,17 @@ const OperatorCard = ({ company }: OperatorCardProps) => {
|
||||
<span className="text-muted-foreground">parks operated</span>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
{company.average_rating > 0 && (
|
||||
<div className="flex items-center gap-1">
|
||||
<Star className="w-3 h-3 fill-yellow-400 text-yellow-400" />
|
||||
<span className="text-sm font-medium">{company.average_rating.toFixed(1)}</span>
|
||||
{company.review_count > 0 && (
|
||||
<span className="text-xs text-muted-foreground">({company.review_count})</span>
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</CardContent>
|
||||
</Card>
|
||||
|
||||
Reference in New Issue
Block a user