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: 86euptceb : Vault/OAuth Connections - Delete Modal UI Inconsistency

samme-abdul7987d1f19e62
diff --git a/packages/app/src/react/features/vault/components/delete-oauth-connection-modal.tsx b/packages/app/src/react/features/vault/components/delete-oauth-connection-modal.tsx
index 7ada1fb2..d23ac185 100644
--- a/packages/app/src/react/features/vault/components/delete-oauth-connection-modal.tsx
+++ b/packages/app/src/react/features/vault/components/delete-oauth-connection-modal.tsx
@@ -1,13 +1,10 @@
-// src/webappv2/pages/vault/delete-oauth-connection-modal.tsx
-import React from 'react';
import {
Dialog,
DialogContent,
- DialogHeader,
- DialogTitle,
DialogDescription,
DialogFooter,
- DialogClose
+ DialogHeader,
+ DialogTitle,
} from '@src/react/shared/components/ui/dialog';
import { Button as CustomButton } from '@src/react/shared/components/ui/newDesign/button';
import type { DeleteOAuthConnectionModalProps } from '../types/oauth-connection';
@@ -27,19 +24,16 @@ export function DeleteOAuthConnectionModal({
return (
<Dialog open={isOpen} onOpenChange={onClose}>
- <DialogContent className="sm:max-w-[425px]">
- <DialogHeader>
+ <DialogContent className="sm:max-w-[425px] [&_.absolute.right-6.top-6]:right-4 [&_.absolute.right-6.top-6]:top-4">
+ <DialogHeader className="space-y-4">
<DialogTitle>Delete OAuth Connection</DialogTitle>
- <DialogDescription>
+ <DialogDescription className="pt-2">
Are you sure you want to delete the connection{' '}
<span className="font-semibold">{connection?.name || 'this connection'}</span>? This
action cannot be undone.
</DialogDescription>
</DialogHeader>
<DialogFooter>
- <DialogClose asChild>
- <CustomButton variant="secondary" type="button" handleClick={onClose} disabled={isProcessing} label="Cancel" />
- </DialogClose>
<CustomButton
variant="primary" // Use destructive variant for delete actions
handleClick={handleConfirm}