Skip to content

Commit a66c85f

Browse files
aarthy-dkclaude
andcommitted
fix(test-definitions): restore field spacing in add/edit dialog tabs
The tab panels render into the Tabs component's content container, which has no flex gap, so the per-field spacing the dialog had as a flex-column was lost. Wrap each tab's fields in a flex-column fx-gap-3 container to restore it. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 13d6e74 commit a66c85f

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

testgen/ui/components/frontend/js/pages/test_definitions.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1461,6 +1461,8 @@ const TestDefFormContent = ({ formValues, tableColumns, testSuite, validateResul
14611461
{ activeTab },
14621462
Tab(
14631463
{ label: 'Parameters' },
1464+
div(
1465+
{ class: 'flex-column fx-gap-3' },
14641466

14651467
// Schema (read-only)
14661468
qualifiesTableRefsWithSchema
@@ -1552,9 +1554,12 @@ const TestDefFormContent = ({ formValues, tableColumns, testSuite, validateResul
15521554
onChange: (value) => updateField('skip_errors', value ?? 0),
15531555
})
15541556
: null,
1557+
),
15551558
),
15561559
Tab(
15571560
{ label: 'Settings' },
1561+
div(
1562+
{ class: 'flex-column fx-gap-3' },
15581563

15591564
// Description override
15601565
Textarea({
@@ -1641,6 +1646,7 @@ const TestDefFormContent = ({ formValues, tableColumns, testSuite, validateResul
16411646
}),
16421647
) : null,
16431648
),
1649+
),
16441650
),
16451651
),
16461652

@@ -1941,7 +1947,7 @@ stylesheet.replace(`
19411947
.td-form-params-section {
19421948
border-top: 1px solid var(--border-color);
19431949
padding-top: 12px;
1944-
margin-top: 4px;
1950+
margin-top: 16px;
19451951
}
19461952
19471953
.tg-test-picker { display: flex; flex-direction: column; gap: 12px; height: 70vh; min-height: 0; }

0 commit comments

Comments
 (0)