Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 18 additions & 20 deletions apps/web/src/components/settings/ProviderInstanceCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down
9 changes: 5 additions & 4 deletions apps/web/src/components/settings/ProviderSetupSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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]">
Expand Down
Loading