Skip to content
TypeScript

fix(web): center authorized client settings rows (#29382)

Yash Singhedc37c96c810
diff --git a/apps/web/src/components/settings/AuthorizedClientsSettings.tsx b/apps/web/src/components/settings/AuthorizedClientsSettings.tsx
index c63c163592c..61fa056cff6 100644
--- a/apps/web/src/components/settings/AuthorizedClientsSettings.tsx
+++ b/apps/web/src/components/settings/AuthorizedClientsSettings.tsx
@@ -876,8 +876,8 @@ export const AdvertisedEndpointListRow = memo(function AdvertisedEndpointListRow
{isDefault ? (
<span className="absolute inset-y-2 left-0 w-1 rounded-r-full bg-primary" aria-hidden />
) : null}
- <div className="flex min-h-6 min-w-0 flex-col gap-2 sm:-my-0.5 sm:flex-row sm:items-center">
- <div className="flex min-w-0 items-baseline gap-3">
+ <div className="flex min-h-7 min-w-0 flex-col gap-2 sm:flex-row sm:items-center sm:gap-3">
+ <div className="flex min-h-7 min-w-0 flex-1 items-center gap-3">
<h3 className="shrink-0 text-sm leading-5 font-medium text-foreground">
{endpoint.label}
</h3>
@@ -894,14 +894,14 @@ export const AdvertisedEndpointListRow = memo(function AdvertisedEndpointListRow
</Tooltip>
) : null}
{!isAvailable ? (
- <span className="shrink-0 rounded-md border border-border/70 px-1 py-0.5 text-3xs text-muted-foreground">
+ <span className="inline-flex h-6 shrink-0 items-center rounded-md border border-border/70 px-1.5 text-3xs text-muted-foreground">
Setup required
</span>
) : null}
</div>
- <div className="ml-auto flex min-h-6 shrink-0 items-center justify-end gap-2">
+ <div className="ml-auto flex min-h-7 shrink-0 items-center justify-end gap-2">
{isDefault ? (
- <span className="rounded-md border border-primary/30 bg-primary/10 px-1 py-0.5 text-3xs text-primary">
+ <span className="inline-flex h-6 items-center rounded-md border border-primary/30 bg-primary/10 px-1.5 text-3xs text-primary">
Default
</span>
) : null}