Skip to content
TypeScript

fix(web): Antigravity setup card separators match other settings cards (#20088)

MONKE2525E36b6c036e8db
diff --git a/apps/web/src/components/settings/ProviderInstanceCard.tsx b/apps/web/src/components/settings/ProviderInstanceCard.tsx
index 96fa36a7d50..bd914264e02 100644
--- a/apps/web/src/components/settings/ProviderInstanceCard.tsx
+++ b/apps/web/src/components/settings/ProviderInstanceCard.tsx
@@ -1184,26 +1184,24 @@ export function ProviderInstanceCard({
{setup || environmentFields.length > 0 ? (
<SettingsSection title="Setup">
{setup}
- <div
- inert={readOnly}
- aria-disabled={readOnly || undefined}
- className={readOnly ? "opacity-50 select-none" : undefined}
- >
- {environmentFields.length > 0 ? (
- <>
- {environmentFields.map((field) => (
- <ProviderEnvironmentFieldRow
- key={field.name}
- field={field}
- variable={readProviderEnvironmentVariable(instance.environment, field.name)}
- idPrefix={`provider-instance-${instanceId}`}
- onCommit={updateEnvironmentField}
- onRemove={removeEnvironmentField}
- />
- ))}
- </>
- ) : null}
- </div>
+ {environmentFields.length > 0 ? (
+ <div
+ inert={readOnly}
+ aria-disabled={readOnly || undefined}
+ className={readOnly ? "opacity-50 select-none" : undefined}
+ >
+ {environmentFields.map((field) => (
+ <ProviderEnvironmentFieldRow
+ key={field.name}
+ field={field}
+ variable={readProviderEnvironmentVariable(instance.environment, field.name)}
+ idPrefix={`provider-instance-${instanceId}`}
+ onCommit={updateEnvironmentField}
+ onRemove={removeEnvironmentField}
+ />
+ ))}
+ </div>
+ ) : null}
</SettingsSection>
) : null}
diff --git a/apps/web/src/components/settings/ProviderSetupSection.tsx b/apps/web/src/components/settings/ProviderSetupSection.tsx
index 46590224b60..f43fa6d2c4f 100644
--- a/apps/web/src/components/settings/ProviderSetupSection.tsx
+++ b/apps/web/src/components/settings/ProviderSetupSection.tsx
@@ -49,7 +49,7 @@ export function ProviderSetupSection(props: ProviderSetupSectionProps) {
return (
<section
aria-label="Antigravity setup"
- className="@container/setup divide-y divide-border/50 text-xs"
+ className="@container/setup divide-y divide-border/50 text-xs [&_[data-slot=settings-row]]:rounded-none"
>
<SettingsRow
className="@max-lg/setup:[&>div:first-child]:flex @max-lg/setup:[&>div:first-child]:items-stretch @max-lg/setup:[&>div:first-child]:gap-3"
@@ -185,6 +185,10 @@ function ProviderSetupActions({
return (
<div className="divide-y divide-border/50">
+ {/* Keep the live region first so the last visible row is not followed by a sibling that adds its divider. */}
+ <p className="sr-only" role="status">
+ {pendingLabel ? `${pendingLabel}.` : null}
+ </p>
<SettingsRow
title="Runtime"
className="@max-lg/setup:[&>div:first-child]:flex @max-lg/setup:[&>div:first-child]:items-stretch @max-lg/setup:[&>div:first-child]:gap-3"
@@ -298,9 +302,6 @@ function ProviderSetupActions({
readOnly={false}
/>
- <p className="sr-only" role="status">
- {pendingLabel ? `${pendingLabel}.` : null}
- </p>
{error || queryError ? (
<div className="grid gap-2 px-3 py-3 sm:px-4">
<p role="alert" className="text-destructive [overflow-wrap:anywhere]">