Skip to content

SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.

Update form section styling to conditionally apply overflow and height classes based on section name

Muhammad Hamza Khanc91ba1f30090
diff --git a/packages/app/src/builder-ui/ui/form/form.ts b/packages/app/src/builder-ui/ui/form/form.ts
index 4c335061..64bb39d6 100644
--- a/packages/app/src/builder-ui/ui/form/form.ts
+++ b/packages/app/src/builder-ui/ui/form/form.ts
@@ -148,7 +148,10 @@ export function createForm(entriesObject, displayType = 'block'): FormHTMLElemen
const section = sections[sectionName];
if (section.length > 0) {
const sectionWrapper = document.createElement('div');
- sectionWrapper.setAttribute('class', 'form-section flex flex-wrap');
+ sectionWrapper.setAttribute(
+ 'class',
+ `form-section flex flex-wrap ${sectionName !== 'main' ? 'overflow-y-auto max-h-[280px]' : ''}`,
+ );
sectionWrapper.setAttribute('data-name', sectionName);
form.appendChild(sectionWrapper);