Refactor: Improve tab list responsiveness

This commit is contained in:
gpt-engineer-app[bot]
2025-10-28 13:41:15 +00:00
parent f8fcaaa337
commit 60cbc1fd4f

View File

@@ -346,35 +346,35 @@ export function ContentTabs() {
<div className="container mx-auto px-4">
<Tabs defaultValue="trending-parks" className="w-full">
<div className="text-center mb-8">
<TabsList className="inline-flex flex-wrap justify-center gap-2 p-2 bg-muted/30 rounded-lg">
<TabsTrigger value="trending-parks" className="px-4 py-2 text-sm font-medium rounded-full data-[state=active]:bg-primary data-[state=active]:text-primary-foreground hover:bg-muted/50 transition-colors">
<TabsList className="inline-flex flex-wrap justify-center gap-1.5 sm:gap-2 md:gap-3 p-1.5 sm:p-2 md:p-3 bg-muted/30 rounded-lg max-w-5xl mx-auto">
<TabsTrigger value="trending-parks" className="px-3 sm:px-4 md:px-5 py-1.5 sm:py-2 text-xs sm:text-sm md:text-base font-medium rounded-full data-[state=active]:bg-primary data-[state=active]:text-primary-foreground hover:bg-muted/50 transition-colors whitespace-nowrap">
Trending Parks
</TabsTrigger>
<TabsTrigger value="trending-rides" className="px-4 py-2 text-sm font-medium rounded-full data-[state=active]:bg-primary data-[state=active]:text-primary-foreground hover:bg-muted/50 transition-colors">
<TabsTrigger value="trending-rides" className="px-3 sm:px-4 md:px-5 py-1.5 sm:py-2 text-xs sm:text-sm md:text-base font-medium rounded-full data-[state=active]:bg-primary data-[state=active]:text-primary-foreground hover:bg-muted/50 transition-colors whitespace-nowrap">
Trending Rides
</TabsTrigger>
<TabsTrigger value="recent-parks" className="px-4 py-2 text-sm font-medium rounded-full data-[state=active]:bg-primary data-[state=active]:text-primary-foreground hover:bg-muted/50 transition-colors">
<TabsTrigger value="recent-parks" className="px-3 sm:px-4 md:px-5 py-1.5 sm:py-2 text-xs sm:text-sm md:text-base font-medium rounded-full data-[state=active]:bg-primary data-[state=active]:text-primary-foreground hover:bg-muted/50 transition-colors whitespace-nowrap">
New Parks
</TabsTrigger>
<TabsTrigger value="recent-rides" className="px-4 py-2 text-sm font-medium rounded-full data-[state=active]:bg-primary data-[state=active]:text-primary-foreground hover:bg-muted/50 transition-colors">
<TabsTrigger value="recent-rides" className="px-3 sm:px-4 md:px-5 py-1.5 sm:py-2 text-xs sm:text-sm md:text-base font-medium rounded-full data-[state=active]:bg-primary data-[state=active]:text-primary-foreground hover:bg-muted/50 transition-colors whitespace-nowrap">
New Rides
</TabsTrigger>
<TabsTrigger value="recent-changes" className="px-4 py-2 text-sm font-medium rounded-full data-[state=active]:bg-primary data-[state=active]:text-primary-foreground hover:bg-muted/50 transition-colors">
<TabsTrigger value="recent-changes" className="px-3 sm:px-4 md:px-5 py-1.5 sm:py-2 text-xs sm:text-sm md:text-base font-medium rounded-full data-[state=active]:bg-primary data-[state=active]:text-primary-foreground hover:bg-muted/50 transition-colors whitespace-nowrap">
Recent Changes
</TabsTrigger>
<TabsTrigger value="recently-opened" className="px-4 py-2 text-sm font-medium rounded-full data-[state=active]:bg-primary data-[state=active]:text-primary-foreground hover:bg-muted/50 transition-colors">
<TabsTrigger value="recently-opened" className="px-3 sm:px-4 md:px-5 py-1.5 sm:py-2 text-xs sm:text-sm md:text-base font-medium rounded-full data-[state=active]:bg-primary data-[state=active]:text-primary-foreground hover:bg-muted/50 transition-colors whitespace-nowrap">
Recently Opened
</TabsTrigger>
<TabsTrigger value="highest-rated-parks" className="px-4 py-2 text-sm font-medium rounded-full data-[state=active]:bg-primary data-[state=active]:text-primary-foreground hover:bg-muted/50 transition-colors">
<TabsTrigger value="highest-rated-parks" className="px-3 sm:px-4 md:px-5 py-1.5 sm:py-2 text-xs sm:text-sm md:text-base font-medium rounded-full data-[state=active]:bg-primary data-[state=active]:text-primary-foreground hover:bg-muted/50 transition-colors whitespace-nowrap">
Top Parks
</TabsTrigger>
<TabsTrigger value="highest-rated-rides" className="px-4 py-2 text-sm font-medium rounded-full data-[state=active]:bg-primary data-[state=active]:text-primary-foreground hover:bg-muted/50 transition-colors">
<TabsTrigger value="highest-rated-rides" className="px-3 sm:px-4 md:px-5 py-1.5 sm:py-2 text-xs sm:text-sm md:text-base font-medium rounded-full data-[state=active]:bg-primary data-[state=active]:text-primary-foreground hover:bg-muted/50 transition-colors whitespace-nowrap">
Top Rides
</TabsTrigger>
<TabsTrigger value="opening-soon" className="px-4 py-2 text-sm font-medium rounded-full data-[state=active]:bg-primary data-[state=active]:text-primary-foreground hover:bg-muted/50 transition-colors">
<TabsTrigger value="opening-soon" className="px-3 sm:px-4 md:px-5 py-1.5 sm:py-2 text-xs sm:text-sm md:text-base font-medium rounded-full data-[state=active]:bg-primary data-[state=active]:text-primary-foreground hover:bg-muted/50 transition-colors whitespace-nowrap">
Opening Soon
</TabsTrigger>
<TabsTrigger value="closing-soon" className="px-4 py-2 text-sm font-medium rounded-full data-[state=active]:bg-primary data-[state=active]:text-primary-foreground hover:bg-muted/50 transition-colors">
<TabsTrigger value="closing-soon" className="px-3 sm:px-4 md:px-5 py-1.5 sm:py-2 text-xs sm:text-sm md:text-base font-medium rounded-full data-[state=active]:bg-primary data-[state=active]:text-primary-foreground hover:bg-muted/50 transition-colors whitespace-nowrap">
Closing Soon
</TabsTrigger>
</TabsList>