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.

Hide scrollbars in ace editor compact sidebar mode

samme-abdul01a69c2d1754
diff --git a/packages/app/src/builder-ui/ui/dom.ts b/packages/app/src/builder-ui/ui/dom.ts
index a29fbad7..8e35ae6c 100644
--- a/packages/app/src/builder-ui/ui/dom.ts
+++ b/packages/app/src/builder-ui/ui/dom.ts
@@ -136,6 +136,8 @@ export function setCodeEditor(
const div: any = document.createElement('div');
div.id = 'ace-editor-styles';
div.className = 'ace-editor ace-editor-sidebar ' + textArea?.className;
+ // Remove any overflow classes that might cause scrollbars in sidebar mode
+ div.classList.remove('overflow-y-auto', 'overflow-x-auto', 'overflow-auto', 'overflow-scroll');
textArea.parentNode.insertBefore(div, textArea?.nextSibling);
textArea?.classList?.add('hidden');
@@ -146,6 +148,9 @@ export function setCodeEditor(
wrap: wrapLine, // enable horizontal scrolling
showGutter: showLineNumbers,
showLineNumbers,
+ // Hide scrollbars for sidebar editors since they grow to show all content
+ vScrollBarAlwaysVisible: false,
+ hScrollBarAlwaysVisible: false,
});
// Remove fixed height and allow content to determine height
editor.container.style.height = 'auto';
diff --git a/packages/app/static/css/smyth-builder.css b/packages/app/static/css/smyth-builder.css
index dec05199..780392f0 100644
--- a/packages/app/static/css/smyth-builder.css
+++ b/packages/app/static/css/smyth-builder.css
@@ -1942,15 +1942,40 @@ ul.agents-list-dlg .btn-delete {
/* 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: