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 textarea styling to use Tailwind classes

samme-abdul97f7c530fdf5
diff --git a/packages/app/src/builder-ui/ui/form/fields.ts b/packages/app/src/builder-ui/ui/form/fields.ts
index ed5cd483..bfd6315d 100644
--- a/packages/app/src/builder-ui/ui/form/fields.ts
+++ b/packages/app/src/builder-ui/ui/form/fields.ts
@@ -782,6 +782,12 @@ async function setupMetroUIBracketSelection(textarea: HTMLTextAreaElement): Prom
} else {
addBracketSelection(textarea);
}
+
+ // Remove Metro UI wrapper borders to let Tailwind classes work
+ if (textareaWrapper) {
+ (textareaWrapper as HTMLElement).style.border = 'none';
+ (textareaWrapper as HTMLElement).style.boxShadow = 'none';
+ }
}
/**
@@ -1016,16 +1022,27 @@ async function handleExpandTextarea(
textareaWrapper.style.flexDirection = 'column';
textareaWrapper.style.overflow = 'hidden';
- // Create modal textarea
+ // Create modal textarea with Tailwind classes for border styling
const modalTextarea = document.createElement('textarea') as TextAreaWithEditor;
modalTextarea.value = originalTextarea.value;
- modalTextarea.classList.add('form-control', 'flex-1', 'resize-none');
+ modalTextarea.classList.add(
+ 'form-control',
+ 'flex-1',
+ 'resize-none',
+ 'border',
+ 'border-gray-200',
+ 'border-b-gray-500',
+ 'focus:border-b-2',
+ 'focus:border-b-blue-500',
+ 'focus:outline-none'
+ );
modalTextarea.id = 'expanded-textarea';
// Add Metro UI data-role for regular textareas (non-code editor)
if (!hasCodeEditor) {
modalTextarea.setAttribute('data-role', 'textarea');
modalTextarea.setAttribute('data-auto-size', 'false');
+ modalTextarea.setAttribute('data-clear-button', 'false');
}
// Copy validation attributes from original textarea for Metro UI validation