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
move the warning bottom
Forhad Hosainff6e7c0888e5
diff --git a/packages/app/src/builder-ui/debugger.ts b/packages/app/src/builder-ui/debugger.tsindex 5bbc5f0e..0b2f503c 100644--- a/packages/app/src/builder-ui/debugger.ts+++ b/packages/app/src/builder-ui/debugger.ts@@ -1401,7 +1401,7 @@ function showOutputInfo(outputEndpoint, outputContent, compName?) {const hasMapped = hasMappedOutputs(outputEndpoint);const shouldShowWarning = isDefault && isStringified && hasMapped;- // Build the warning message HTML if needed+ // Build the warning message HTML if needed (positioned after textarea like preview button)const warningMessage = shouldShowWarning? `<div class="dbg-json-warning-message"><span class="dbg-json-warning-icon">!</span>@@ -1409,9 +1409,17 @@ function showOutputInfo(outputEndpoint, outputContent, compName?) {</div>`: '';- div.innerHTML = `<button class="pin button primary"><span class="mif-pin icon"></span></button>${warningMessage}<span class="dbg-output-content">${formattedContent}</span>`;+ div.innerHTML = `<button class="pin button primary"><span class="mif-pin icon"></span></button>${formattedContent}${warningMessage}`;div.className = 'dbg-element dbg-output';+ // Adjust textarea height if warning is shown+ if (shouldShowWarning) {+ const textarea = div.querySelector('.dbg-textarea');+ if (textarea) {+ textarea.classList.add('dbg-textarea-with-warning');+ }+ }+// keep the pinning state if the debugger window is already pinnedconst isPinned = div.closest('.endpoint')?.classList.contains('pinned');togglePinning(div, isPinned ? 'pin' : '');diff --git a/packages/app/static/css/smyth-debugger.css b/packages/app/static/css/smyth-debugger.cssindex d12a0d9c..88d767f7 100644--- a/packages/app/static/css/smyth-debugger.css+++ b/packages/app/static/css/smyth-debugger.css@@ -230,20 +230,13 @@right: auto;}-/* Warning icon for stringified JSON outputs */-.dbg-output-content {- display: inline-block;- position: relative;- width: 100%;-}-/* Warning message container */.dbg-json-warning-message {display: flex;align-items: center;gap: 6px;padding: 5px 8px;- margin-bottom: 6px;+ margin-top: 6px;background-color: #fff3e0;border-left: 3px solid #ff9800;border-radius: 3px;@@ -390,6 +383,9 @@.dbg-textarea.dbg-textarea-with-footer {height: calc(100% - 60px) !important;}+.dbg-textarea.dbg-textarea-with-warning {+ height: calc(100% - 60px) !important;+}.dbg-log-download-link {text-decoration: underline;}