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 code editor settings and clean up CSS styles

Muhammad Hamza Khan3df120862e1e
diff --git a/packages/app/src/builder-ui/ui/dom.ts b/packages/app/src/builder-ui/ui/dom.ts
index 8e35ae6c..d3233e46 100644
--- a/packages/app/src/builder-ui/ui/dom.ts
+++ b/packages/app/src/builder-ui/ui/dom.ts
@@ -144,7 +144,7 @@ export function setCodeEditor(
const editor = ace?.edit(div);
editors.push(editor);
editor?.setOptions({
- maxLines: Infinity,
+ maxLines: null,
wrap: wrapLine, // enable horizontal scrolling
showGutter: showLineNumbers,
showLineNumbers,
@@ -153,7 +153,8 @@ export function setCodeEditor(
hScrollBarAlwaysVisible: false,
});
// Remove fixed height and allow content to determine height
- editor.container.style.height = 'auto';
+ editor.container.style.height = '100%';
+ editor.container.style.minHeight = '200px';
editor.renderer.setScrollMargin(
scrollMarginTop,
scrollMarginBottom,
diff --git a/packages/app/static/css/smyth-builder.css b/packages/app/static/css/smyth-builder.css
index b9860fe4..90188b9b 100644
--- a/packages/app/static/css/smyth-builder.css
+++ b/packages/app/static/css/smyth-builder.css
@@ -1939,42 +1939,6 @@ ul.agents-list-dlg .btn-delete {
border-right: none !important;
}
-/* Hide scrollbars for ace editors in compact/sidebar mode (maxLines: Infinity) */
-/* These editors grow to show all content and don't need internal scrolling */
-/* Use class-based targeting to only affect sidebar editors, not modal editors */
-
-/* Remove any overflow from the ace editor container itself */
-.ace-editor-sidebar {
- overflow: visible !important;
-}
-
-.ace-editor-sidebar .ace_scrollbar {
- display: none !important;
- opacity: 0 !important;
- visibility: hidden !important;
- width: 0 !important;
- height: 0 !important;
-}
-
-.ace-editor-sidebar .ace_scrollbar-v,
-.ace-editor-sidebar .ace_scrollbar-h {
- display: none !important;
- opacity: 0 !important;
- visibility: hidden !important;
- width: 0 !important;
- height: 0 !important;
-}
-
-/* Also hide the scrollbar corner */
-.ace-editor-sidebar .ace_scrollbar-corner {
- display: none !important;
-}
-
-/* Ensure no overflow scrolling on the scroller container */
-.ace-editor-sidebar .ace_scroller {
- overflow: visible !important;
-}
-
/* css for tooltip in ace editor, to show error, warning, info */
.ace_tooltip {
font: