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.

Refactor button styles and layout in various components

Muhammad Hamza Khan8269c681d54c
diff --git a/packages/app/src/react/features/agents/components/modals/deploy-agent-modal.tsx b/packages/app/src/react/features/agents/components/modals/deploy-agent-modal.tsx
index f26ec81f..f091a371 100644
--- a/packages/app/src/react/features/agents/components/modals/deploy-agent-modal.tsx
+++ b/packages/app/src/react/features/agents/components/modals/deploy-agent-modal.tsx
@@ -760,7 +760,7 @@ function DeployAgentModal({ userInfo, deploymentSidebarCtx }) {
<Button
type="submit"
loading={isInProgress}
- className="px-8 rounded-lg ml-auto"
+ className="px-8 rounded-sm ml-auto"
>
Deploy
</Button>
@@ -768,24 +768,24 @@ function DeployAgentModal({ userInfo, deploymentSidebarCtx }) {
</form>
</TabsContent>
<TabsContent value="enterprise">
- <div className="space-y-6">
+ <div className="space-y-8">
<p className="text-xs text-gray-600">
Deploy on-prem or to enterprise cloud with enterprise security and
unlimited task options available. Great for enterprise.
</p>
- <Button className="rounded-lg ml-auto" handleClick={handleContactSales}>
+ <Button className="rounded-sm ml-auto" handleClick={handleContactSales}>
Contact sales
</Button>
</div>
</TabsContent>
<TabsContent value="deploy-locally">
- <div className="space-y-6">
+ <div className="space-y-8">
<p className="text-xs text-gray-600">
Export your AI agent with Control+ Shift+E, then run it locally with our
local runtime for Mac, Windows, Linux.
</p>
<Button
- className="px-8 rounded-lg ml-auto"
+ className="px-8 rounded-sm ml-auto"
handleClick={() => handleDeploy('locally')}
>
Download SRE
diff --git a/packages/app/src/react/features/builder/components/endpoint-form-preview-sidebar/index.tsx b/packages/app/src/react/features/builder/components/endpoint-form-preview-sidebar/index.tsx
index e5b8ba11..f338ecfc 100644
--- a/packages/app/src/react/features/builder/components/endpoint-form-preview-sidebar/index.tsx
+++ b/packages/app/src/react/features/builder/components/endpoint-form-preview-sidebar/index.tsx
@@ -159,7 +159,7 @@ const FormPreviewSidebar = ({ mode }: Props) => {
<p className="pb-2">Select one of your agent's skills from the list, then click Test.</p>
<div className="flex gap-2">
<select
- className="h-9 w-full bg-white border text-gray-900 rounded block outline-none focus:outline-none focus:ring-0 focus:ring-offset-0 focus:ring-shadow-none text-sm font-light placeholder:text-sm placeholder:font-normal px-[10px] border-gray-300 border-b-gray-500 focus:border-b-2 focus:border-b-blue-500 focus-visible:border-b-2 focus-visible:border-b-blue-500 appearance-none cursor-pointer"
+ className="w-full bg-white border text-gray-900 rounded block outline-none focus:outline-none focus:ring-0 focus:ring-offset-0 focus:ring-shadow-none text-sm font-light placeholder:text-sm placeholder:font-normal px-[10px] border-gray-300 border-b-gray-500 focus:border-b-2 focus:border-b-blue-500 focus-visible:border-b-2 focus-visible:border-b-blue-500 appearance-none cursor-pointer"
value={targetSkill?.skillId}
onChange={(e) => handleSkillChange(e.target.value)}
>
diff --git a/packages/app/src/react/features/vault/components/api-keys.tsx b/packages/app/src/react/features/vault/components/api-keys.tsx
index 414d3cf4..cdc0871d 100644
--- a/packages/app/src/react/features/vault/components/api-keys.tsx
+++ b/packages/app/src/react/features/vault/components/api-keys.tsx
@@ -355,7 +355,7 @@ export const UpdateApiKeyDialog: FC<UpdateApiKeyDialogProps> = ({
handleClick={handleSubmit}
disabled={isLoading || !isFormValid()}
label={isLoading ? 'Saving...' : 'Save'}
- className={cn('w-[100px]', 'rounded-lg')}
+ className={cn('w-[100px]')}
/>
</DialogFooter>
</DialogContent>
diff --git a/packages/app/src/react/shared/components/ui/newDesign/button.tsx b/packages/app/src/react/shared/components/ui/newDesign/button.tsx
index 06d9832e..e473df2a 100644
--- a/packages/app/src/react/shared/components/ui/newDesign/button.tsx
+++ b/packages/app/src/react/shared/components/ui/newDesign/button.tsx
@@ -62,7 +62,7 @@ export function Button({
iconPosition = 'left',
}: CustomButtonProps) {
const baseStyles =
- 'flex items-center justify-center text-sm font-normal border border-solid text-base px-4 py-2 text-center rounded-md transition-all duration-200 outline-none focus:outline-none focus:ring-0 focus:ring-offset-0 focus:ring-shadow-none';
+ 'flex items-center justify-center text-sm font-normal border border-solid text-base px-4 py-2 text-center rounded-sm transition-all duration-200 outline-none focus:outline-none focus:ring-0 focus:ring-offset-0 focus:ring-shadow-none';
const getButtonStyles = () => {
const styles = [];