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 max height based on display type

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