Skip to content

Commit 36b6c03

Browse files
MONKE2525Eclaude
andauthored
fix(web): Antigravity setup card separators match other settings cards (pingdotgg#20088)
Co-authored-by: Claude Opus 5.5 <[email protected]>
1 parent 558b55a commit 36b6c03

2 files changed

Lines changed: 23 additions & 24 deletions

File tree

‎apps/web/src/components/settings/ProviderInstanceCard.tsx‎

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,26 +1184,24 @@ export function ProviderInstanceCard({
11841184
{setup || environmentFields.length > 0 ? (
11851185
<SettingsSection title="Setup">
11861186
{setup}
1187-
<div
1188-
inert={readOnly}
1189-
aria-disabled={readOnly || undefined}
1190-
className={readOnly ? "opacity-50 select-none" : undefined}
1191-
>
1192-
{environmentFields.length > 0 ? (
1193-
<>
1194-
{environmentFields.map((field) => (
1195-
<ProviderEnvironmentFieldRow
1196-
key={field.name}
1197-
field={field}
1198-
variable={readProviderEnvironmentVariable(instance.environment, field.name)}
1199-
idPrefix={`provider-instance-${instanceId}`}
1200-
onCommit={updateEnvironmentField}
1201-
onRemove={removeEnvironmentField}
1202-
/>
1203-
))}
1204-
</>
1205-
) : null}
1206-
</div>
1187+
{environmentFields.length > 0 ? (
1188+
<div
1189+
inert={readOnly}
1190+
aria-disabled={readOnly || undefined}
1191+
className={readOnly ? "opacity-50 select-none" : undefined}
1192+
>
1193+
{environmentFields.map((field) => (
1194+
<ProviderEnvironmentFieldRow
1195+
key={field.name}
1196+
field={field}
1197+
variable={readProviderEnvironmentVariable(instance.environment, field.name)}
1198+
idPrefix={`provider-instance-${instanceId}`}
1199+
onCommit={updateEnvironmentField}
1200+
onRemove={removeEnvironmentField}
1201+
/>
1202+
))}
1203+
</div>
1204+
) : null}
12071205
</SettingsSection>
12081206
) : null}
12091207

‎apps/web/src/components/settings/ProviderSetupSection.tsx‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export function ProviderSetupSection(props: ProviderSetupSectionProps) {
4949
return (
5050
<section
5151
aria-label="Antigravity setup"
52-
className="@container/setup divide-y divide-border/50 text-xs"
52+
className="@container/setup divide-y divide-border/50 text-xs [&_[data-slot=settings-row]]:rounded-none"
5353
>
5454
<SettingsRow
5555
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({
185185

186186
return (
187187
<div className="divide-y divide-border/50">
188+
{/* Keep the live region first so the last visible row is not followed by a sibling that adds its divider. */}
189+
<p className="sr-only" role="status">
190+
{pendingLabel ? `${pendingLabel}.` : null}
191+
</p>
188192
<SettingsRow
189193
title="Runtime"
190194
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({
298302
readOnly={false}
299303
/>
300304

301-
<p className="sr-only" role="status">
302-
{pendingLabel ? `${pendingLabel}.` : null}
303-
</p>
304305
{error || queryError ? (
305306
<div className="grid gap-2 px-3 py-3 sm:px-4">
306307
<p role="alert" className="text-destructive [overflow-wrap:anywhere]">

0 commit comments

Comments
 (0)