Skip to content

Commit e6cadf9

Browse files
committed
Fix Search and Tab styles
1 parent 9365f73 commit e6cadf9

File tree

1 file changed

+7
-10
lines changed
  • apps/dashboard/src/app/(app)/team/[team_slug]/(team)/~/support/_components

1 file changed

+7
-10
lines changed

apps/dashboard/src/app/(app)/team/[team_slug]/(team)/~/support/_components/SupportTabs.tsx

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,36 +29,33 @@ export function SupportTabs({
2929
];
3030

3131
return (
32-
<div className="flex flex-col gap-4 mb-6 sm:flex-row sm:items-center">
32+
<div className="flex flex-col gap-2 sm:flex-row sm:items-center">
3333
{/* Search Bar */}
3434
<div className="relative flex-1">
3535
<SearchIcon className="absolute left-3 top-1/2 transform -translate-y-1/2 text-muted-foreground w-4 h-4" />
3636
<Input
37-
className="pl-10 w-full bg-background border-border text-foreground placeholder:text-muted-foreground focus-visible:ring-0 focus-visible:ring-offset-0 focus-visible:border-primary"
37+
className="pl-9 bg-card"
3838
onChange={(e) => onSearchChange(e.target.value)}
39-
placeholder="Search cases..."
39+
placeholder="Search"
4040
value={searchQuery}
4141
/>
4242
</div>
4343

4444
{/* Tab Buttons */}
45-
<div className="grid w-full grid-cols-3 bg-background border border-border p-1 rounded-lg sm:w-fit">
45+
<div className="grid w-full grid-cols-3 bg-background border border-border p-1 rounded-lg sm:w-fit gap-0.5">
4646
{tabs.map((tab) => (
4747
<Button
4848
className={cn(
49-
"h-8 px-2 py-1 font-medium text-sm transition-colors rounded-md sm:px-3",
49+
"h-8 px-2 py-1 text-sm transition-colors rounded-sm sm:px-3",
5050
activeTab === tab.id
5151
? "bg-accent text-foreground"
52-
: "text-muted-foreground hover:text-foreground",
52+
: "text-muted-foreground hover:text-foreground hover:bg-accent/70",
5353
)}
5454
key={tab.id}
5555
onClick={() => onTabChange(tab.id)}
5656
variant="ghost"
5757
>
58-
<span className="hidden sm:inline">
59-
{tab.label} ({tab.count})
60-
</span>
61-
<span className="sm:hidden">{tab.label}</span>
58+
<span>{tab.label}</span>
6259
</Button>
6360
))}
6461
</div>

0 commit comments

Comments
 (0)