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.
JavaScript a2aagentic-aiai-agentsdevtoolsmcp-clientn8n-alternativeno-codeopen-sourceorchestrationsmythosvisual-builder
Enhance code editor functionality and update CSS styles
Muhammad Hamza Khan24cb91fa667f
diff --git a/packages/app/src/builder-ui/ui/form/createFormField.ts b/packages/app/src/builder-ui/ui/form/createFormField.tsindex 8824c4e0..d819e578 100644--- a/packages/app/src/builder-ui/ui/form/createFormField.ts+++ b/packages/app/src/builder-ui/ui/form/createFormField.ts@@ -190,8 +190,16 @@ export default function createFormField(entry, displayType = 'block', entryIndexformElement.addEventListener('created', async () => {const mode = entry?.code?.mode;const theme = entry?.code?.theme || 'tomorrow';- setCodeEditor(formElement, mode, theme, entry?.code?.disableWorker);+ const editors = setCodeEditor(formElement, mode, theme, entry?.code?.disableWorker);(<any>formElement)._editor.setValue((<any>formElement).value);++ if (entry?.code?.editorHeight) {+ editors?.forEach((editor: any) => {+ editor?.setOptions({+ maxLines: entry?.code?.editorHeight,+ });+ });+ }});}if (entry?.toggle?.toLowerCase() === 'json') {@@ -518,9 +526,8 @@ export default function createFormField(entry, displayType = 'block', entryIndexlet labelElement = null;if (label /*&& displayType !== 'inline'*/) {labelElement = document.createElement('label');- labelElement.className = `form-label text-[#1E1E1E] text-sm font-medium mb-1.5 ${- attributes.labelCase ? attributes.labelCase : 'capitalize'- }`;+ labelElement.className = `form-label text-[#1E1E1E] text-sm font-medium mb-1.5 ${attributes.labelCase ? attributes.labelCase : 'capitalize'+ }`;if (entry.type?.toLowerCase() === 'key-value' || entry.type?.toLowerCase() === 'table') {labelElement.classList.add('form-label__kv');diff --git a/packages/app/static/css/smyth-builder.css b/packages/app/static/css/smyth-builder.cssindex 90188b9b..a606ce79 100644--- a/packages/app/static/css/smyth-builder.css+++ b/packages/app/static/css/smyth-builder.css@@ -2257,7 +2257,7 @@ input[data-vault-exclusive='true']:disabled {}.code-editor-label-container-left-border {- width: 41px;+ width: 48px;background-color: #ebebeb;border-right: 1px solid #e0e0e0;display: flex;