Skip to content

Commit 0c0fb4c

Browse files
committed
fix title alignment in config ui
1 parent 40e12cb commit 0c0fb4c

File tree

1 file changed

+19
-17
lines changed

1 file changed

+19
-17
lines changed

app/routes/(authed)/config.tsx

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ function ConfigComponent() {
118118
<AppSidebar>
119119
<div className="min-h-screen bg-background">
120120
<AppNavbar />
121-
<main className="mx-auto max-w-7xl p-4 pt-20">
121+
<main className="container mx-auto p-4 pt-20">
122122
<div className="space-y-6">
123123
<div>
124124
<h1 className="text-3xl font-bold tracking-tight">Service Configuration</h1>
@@ -136,21 +136,23 @@ function ConfigComponent() {
136136
onOpenChange={() => toggleService(service.id)}
137137
>
138138
<Card className="overflow-hidden">
139-
<CollapsibleTrigger className="w-full">
140-
<CardHeader className="flex flex-row items-center justify-between p-6">
141-
<div>
142-
<h3 className="text-xl font-semibold">{service.name}</h3>
143-
<p className="text-sm text-muted-foreground mt-1">
144-
{service.description}
145-
</p>
139+
<CollapsibleTrigger className="w-full text-left">
140+
<CardHeader className="p-6">
141+
<div className="flex items-center justify-between">
142+
<div>
143+
<h3 className="text-xl font-semibold">{service.name}</h3>
144+
<p className="text-sm text-muted-foreground mt-1">
145+
{service.description}
146+
</p>
147+
</div>
148+
<Button variant="ghost" size="icon">
149+
{expandedServices.has(service.id) ? (
150+
<ChevronUp className="h-4 w-4" />
151+
) : (
152+
<ChevronDown className="h-4 w-4" />
153+
)}
154+
</Button>
146155
</div>
147-
<Button variant="ghost" size="icon">
148-
{expandedServices.has(service.id) ? (
149-
<ChevronUp className="h-4 w-4" />
150-
) : (
151-
<ChevronDown className="h-4 w-4" />
152-
)}
153-
</Button>
154156
</CardHeader>
155157
</CollapsibleTrigger>
156158

@@ -164,14 +166,14 @@ function ConfigComponent() {
164166
key={product.id}
165167
variant={isEnabled ? "default" : "outline"}
166168
className={cn(
167-
"flex flex-col items-center justify-center gap-2 h-24 transition-[background-color] duration-75",
169+
"flex flex-col items-center justify-center gap-2 h-24 w-full transition-[background-color] duration-75",
168170
isEnabled && "bg-primary text-primary-foreground",
169171
!isEnabled && "hover:bg-primary/10"
170172
)}
171173
onClick={() => toggleProduct(service.id, product.id)}
172174
>
173175
{getIconForProduct(service.id, product.id)}
174-
<span className="text-sm font-medium">{product.name}</span>
176+
<span className="text-sm font-medium text-center">{product.name}</span>
175177
</Button>
176178
);
177179
})}

0 commit comments

Comments
 (0)