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.

Fix: 86ev866v9 : API Call Component - Unexpected horizontal Scroll Bars in Modals (#268)

samme-abdulaa91bf3dd86c
diff --git a/packages/app/src/builder-ui/components/APICall.class.ts b/packages/app/src/builder-ui/components/APICall.class.ts
index 5679630b..2b2fc193 100644
--- a/packages/app/src/builder-ui/components/APICall.class.ts
+++ b/packages/app/src/builder-ui/components/APICall.class.ts
@@ -126,6 +126,7 @@ export class APICall extends Component {
click: handleKvFieldEditBtnForParams.bind(this, {
showVault: true,
vaultScope: COMP_NAMES.apiCall,
+ dialogClasses: 'overflow-x-hidden',
}),
},
},
@@ -150,6 +151,7 @@ export class APICall extends Component {
click: handleKvFieldEditBtn.bind(this, 'headers', {
showVault: true,
vaultScope: COMP_NAMES.apiCall,
+ dialogClasses: 'overflow-x-hidden',
}),
},
},
@@ -192,6 +194,7 @@ export class APICall extends Component {
click: handleKvFieldEditBtn.bind(this, 'body', {
showVault: true,
vaultScope: COMP_NAMES.apiCall,
+ dialogClasses: 'overflow-x-hidden',
}),
},
},
diff --git a/packages/app/src/builder-ui/utils/component.utils/index.ts b/packages/app/src/builder-ui/utils/component.utils/index.ts
index ba64a688..a2512278 100644
--- a/packages/app/src/builder-ui/utils/component.utils/index.ts
+++ b/packages/app/src/builder-ui/utils/component.utils/index.ts
@@ -24,7 +24,7 @@ const uiServer = config.env.UI_SERVER;
// * N:B Need to invoke this function with .bind(this), .call(this) or .apply(this) to get the correct context
export async function handleKvFieldEditBtn(
fieldName: string,
- options?: { title: string; showVault: boolean; vaultScope: string },
+ options?: { title: string; showVault: boolean; vaultScope: string; dialogClasses?: string },
): Promise<void> {
const attributes = { 'data-template-vars': 'true' };
@@ -44,6 +44,7 @@ export async function handleKvFieldEditBtn(
},
},
showCloseButton: true,
+ dialogClasses: options?.dialogClasses || '',
});
//editValuesDialog;
@@ -74,6 +75,7 @@ export async function handleKvFieldEditBtn(
export async function handleKvFieldEditBtnForParams(options?: {
showVault: boolean;
vaultScope: string;
+ dialogClasses?: string;
}): Promise<void> {
// * Old implementation of edit values field, will remove it
// const queryParamValues: any = await editValues({
@@ -114,6 +116,7 @@ export async function handleKvFieldEditBtnForParams(options?: {
},
},
showCloseButton: true,
+ dialogClasses: options?.dialogClasses || '',
});
if (queryParamValues) {