Skip to content

Commit ef8ded4

Browse files
committed
Fix dialog variant field spacing: apply grid gap to label element
The dialog variant's FieldFrame applied 'grid gap-1.5' on a wrapper div, but its only child was a single <label>, so the gap had no effect. The label text, input, and description inside the label had no layout class, causing them to render without vertical spacing. Move 'grid gap-1.5' to the <label> element itself for the dialog variant so it spaces its children (label text, input, description) correctly.
1 parent 77e6873 commit ef8ded4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/web/src/components/settings/ProviderSettingsForm.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ function ProviderSettingsFieldRow({
202202
if (field.control === "textarea") {
203203
return (
204204
<FieldFrame variant={variant}>
205-
<label htmlFor={inputId} className={cn(variant === "card" && "block")}>
205+
<label htmlFor={inputId} className={cn(variant === "card" ? "block" : "grid gap-1.5")}>
206206
{label}
207207
<Textarea
208208
id={inputId}
@@ -223,7 +223,7 @@ function ProviderSettingsFieldRow({
223223
const type = field.control === "password" ? "password" : undefined;
224224
return (
225225
<FieldFrame variant={variant}>
226-
<label htmlFor={inputId} className={cn(variant === "card" && "block")}>
226+
<label htmlFor={inputId} className={cn(variant === "card" ? "block" : "grid gap-1.5")}>
227227
{label}
228228
{variant === "card" ? (
229229
<DraftInput

0 commit comments

Comments
 (0)