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
Refactor button styles across various components to use 'rounded-sm' instead of 'rounded-lg' for a more consistent design. Updated ConfirmModal, userInfoCard, and multiple dialog components to reflect this change.
Muhammad Hamza Khand21aff22a155
diff --git a/packages/app/src/builder-ui/components/Component.class/index.ts b/packages/app/src/builder-ui/components/Component.class/index.tsindex 5197ff6d..1ca23f83 100644--- a/packages/app/src/builder-ui/components/Component.class/index.ts+++ b/packages/app/src/builder-ui/components/Component.class/index.ts@@ -2526,7 +2526,7 @@ export class Component extends EventEmitter {'Are you sure you want to close this without saving?',{btnYesLabel: 'Discard Changes',- btnYesClass: 'rounded-lg px-8',+ btnYesClass: 'rounded-sm px-8',btnNoClass: 'hidden',},);diff --git a/packages/app/src/builder-ui/ui/dialogs.ts b/packages/app/src/builder-ui/ui/dialogs.tsindex 9244fe08..1915bbec 100644--- a/packages/app/src/builder-ui/ui/dialogs.ts+++ b/packages/app/src/builder-ui/ui/dialogs.ts@@ -1443,7 +1443,7 @@ export function confirm(btnYes.className += ` ${btnYesClass}`;if (btnYesType === 'danger') {- btnYes.className += ` bg-smyth-red-500 border-smyth-red-500 rounded-lg px-8 hover:bg-red-600`;+ btnYes.className += ` bg-smyth-red-500 border-smyth-red-500 rounded-sm px-8 hover:bg-red-600`;btnYes.classList.remove('bg-smythos-blue-500','border-smythos-blue-500',@@ -1525,7 +1525,7 @@ export function modalDialog(const button = document.createElement('button');button.setAttribute('class',- `text-center text-sm font-medium py-1.5 px-3 w-40 rounded-lg border hover:opacity-75 focus:ring-4 focus:outline-none ${cls}`,+ `text-center text-sm font-medium py-1.5 px-3 w-40 rounded-sm border hover:opacity-75 focus:ring-4 focus:outline-none ${cls}`,);button.innerHTML = label;button.onclick = () => {diff --git a/packages/app/src/builder-ui/ui/tw-dialogs.ts b/packages/app/src/builder-ui/ui/tw-dialogs.tsindex 9f33f662..e4eb14ac 100644--- a/packages/app/src/builder-ui/ui/tw-dialogs.ts+++ b/packages/app/src/builder-ui/ui/tw-dialogs.ts@@ -191,7 +191,7 @@ export async function twEditValues({for (let action of actions) {const button = document.createElement('button');dialogActions.appendChild(button);- button.className = `px-8 py-[9px] text-white transition-opacity rounded-lg w-full sm:w-auto ${+ button.className = `px-8 py-[9px] text-white transition-opacity rounded-sm w-full sm:w-auto ${action.cssClass || PRIMARY_BUTTON_STYLE}`;button.innerHTML = action.label;diff --git a/packages/app/src/react/features/account/components/userInfoCard.tsx b/packages/app/src/react/features/account/components/userInfoCard.tsxindex fed4f7ea..40147057 100644--- a/packages/app/src/react/features/account/components/userInfoCard.tsx+++ b/packages/app/src/react/features/account/components/userInfoCard.tsx@@ -76,7 +76,7 @@ const UserInfoCard = () => {error: 'Your account cannot be deleted while you have active team members.',steps: ['Remove all team members from your account',- `Then cancel your subscription from <a href="/my-plan">My Plan page</a>`,+ 'Then cancel your subscription from <a href="/my-plan">My Plan page</a>','Contact support if you need assistance',],},@@ -106,7 +106,7 @@ const UserInfoCard = () => {const deleteBtn = (<CustomButton- className="mt-5"+ className="mt-5 rounded-sm"handleClick={() =>canDeleteAccount ? setDeleteAccountModalOpen(true) : setBlockAccountDeleteModalOpen(true)}diff --git a/packages/app/src/react/features/account/modal/block-account-delete.tsx b/packages/app/src/react/features/account/modal/block-account-delete.tsxindex f375d4d1..5fdc351f 100644--- a/packages/app/src/react/features/account/modal/block-account-delete.tsx+++ b/packages/app/src/react/features/account/modal/block-account-delete.tsx@@ -120,7 +120,7 @@ export default function BlockAccountDeleteModal({ handleToggle, deleteAccRequireDeleteAccountType.IS_NOT_TEAM_OWNER,].includes(deleteAccRequirement.type) && (<Button- className="w-full bg-[#3C89F9] hover:bg-[#2B7CE9] text-white text-[14px] font-inter font-normal"+ className="w-full bg-[#3C89F9] hover:bg-[#2B7CE9] text-white text-[14px] font-inter font-normal rounded-sm"onClick={handleManageTeamMembers}><Users className="w-4 h-4 mr-2" />@@ -133,7 +133,7 @@ export default function BlockAccountDeleteModal({ handleToggle, deleteAccRequire{[DeleteAccountType.USER_HAS_SUBSCRIPTION].includes(deleteAccRequirement.type) && (<Button- className="w-full bg-[#3C89F9] hover:bg-[#2B7CE9] text-white text-[14px] font-inter font-normal"+ className="w-full bg-[#3C89F9] hover:bg-[#2B7CE9] text-white text-[14px] font-inter font-normal rounded-sm"onClick={handleManageSubscription}><Crown className="w-4 h-4 mr-2" />@@ -143,7 +143,7 @@ export default function BlockAccountDeleteModal({ handleToggle, deleteAccRequire<Buttonvariant="outline"- className="w-full bg-white border border-gray-300 text-gray-700 hover:bg-gray-50 text-[14px] font-inter font-normal rounded-lg"+ className="w-full bg-white border border-gray-300 text-gray-700 hover:bg-gray-50 text-[14px] font-inter font-normal rounded-sm"onClick={handleClose}>Closediff --git a/packages/app/src/react/features/agent-settings/dialogs/ChatBot.tsx b/packages/app/src/react/features/agent-settings/dialogs/ChatBot.tsxindex a8510bc5..d28a34ed 100644--- a/packages/app/src/react/features/agent-settings/dialogs/ChatBot.tsx+++ b/packages/app/src/react/features/agent-settings/dialogs/ChatBot.tsx@@ -1166,7 +1166,7 @@ const ChatBotDialog = ({Icon={<Spinner classes="w-4 h-4 mr-2" />}disabled={isSubmitting}type="submit"- className="px-8 rounded-lg"+ className="px-8 rounded-sm"/></div></Form>diff --git a/packages/app/src/react/features/agent-settings/dialogs/ChatGpt.tsx b/packages/app/src/react/features/agent-settings/dialogs/ChatGpt.tsxindex 977ee120..43932911 100644--- a/packages/app/src/react/features/agent-settings/dialogs/ChatGpt.tsx+++ b/packages/app/src/react/features/agent-settings/dialogs/ChatGpt.tsx@@ -519,7 +519,7 @@ const ChatGptDialog = ({<div className="mt-8 flex justify-end w-full"><Button- className="w-[100px] rounded-lg"+ className="w-[100px] rounded-sm"handleClick={() => submitForm(props.values)}label="Save"addIcon={isSubmitting}diff --git a/packages/app/src/react/features/agent-settings/dialogs/FormPreview.tsx b/packages/app/src/react/features/agent-settings/dialogs/FormPreview.tsxindex 8ecd01d7..dd256da0 100644--- a/packages/app/src/react/features/agent-settings/dialogs/FormPreview.tsx+++ b/packages/app/src/react/features/agent-settings/dialogs/FormPreview.tsx@@ -318,7 +318,7 @@ const FormPreviewDialog = ({Icon={<Spinner classes="w-4 h-4 mr-2" />}disabled={isSubmitting}type="submit"- className="px-8 rounded-lg"+ className="px-8 rounded-sm"/></div></Form>diff --git a/packages/app/src/react/features/agent-settings/dialogs/Voice.tsx b/packages/app/src/react/features/agent-settings/dialogs/Voice.tsxindex d33d7745..53d4a8c2 100644--- a/packages/app/src/react/features/agent-settings/dialogs/Voice.tsx+++ b/packages/app/src/react/features/agent-settings/dialogs/Voice.tsx@@ -285,7 +285,7 @@ const VoiceDialog = ({Icon={<Spinner classes="w-4 h-4 mr-2" />}disabled={isSubmitting}type="submit"- className="px-8 rounded-lg"+ className="px-8 rounded-sm"/></div></Form>diff --git a/packages/app/src/react/features/vault/components/user-models.tsx b/packages/app/src/react/features/vault/components/user-models.tsxindex a1e1f95c..20eac991 100644--- a/packages/app/src/react/features/vault/components/user-models.tsx+++ b/packages/app/src/react/features/vault/components/user-models.tsx@@ -125,7 +125,7 @@ function SetupModal({ isOpen, onClose, model, existingKey, isEdit }: SetupModalPhandleClick={handleSubmit}disabled={isSaveDisabled}label={isLoading ? 'Saving...' : 'Save'}- className={cn('w-[100px] rounded-lg')}+ className={cn('w-[100px] rounded-sm')}/></DialogFooter></DialogContent>diff --git a/packages/app/src/react/shared/components/ui/modals/ConfirmModal.tsx b/packages/app/src/react/shared/components/ui/modals/ConfirmModal.tsxindex bf41b46d..d86ef730 100644--- a/packages/app/src/react/shared/components/ui/modals/ConfirmModal.tsx+++ b/packages/app/src/react/shared/components/ui/modals/ConfirmModal.tsx@@ -1,4 +1,4 @@-/* eslint-disable max-len */+import classNames from 'classnames';import { ReactNode } from 'react';@@ -75,7 +75,7 @@ const ConfirmModal = (props: Props) => {<ButtonhandleClick={props.handleConfirm}loading={props.isLoading}- className={classNames('px-8 rounded-lg', props.confirmBtnClasses)}+ className={classNames('px-8 rounded-sm', props.confirmBtnClasses)}>{props.label || 'Confirm'}</Button>diff --git a/packages/app/views/pages/partials/studio/feedback-modal.ejs b/packages/app/views/pages/partials/studio/feedback-modal.ejsindex 737c3486..34fe52ea 100644--- a/packages/app/views/pages/partials/studio/feedback-modal.ejs+++ b/packages/app/views/pages/partials/studio/feedback-modal.ejs@@ -120,7 +120,7 @@<div class="flex justify-end gap-3"><buttonid="submitFeedback"- class="flex items-center justify-center font-normal border border-solid text-base px-8 py-2 text-center rounded-lg transition-all duration-200 outline-none focus:outline-none focus:ring-0 focus:ring-offset-0 focus:ring-shadow-none bg-smythos-blue-500 text-white border-transparent hover:bg-smyth-blue disabled:opacity-50 disabled:cursor-not-allowed"+ class="flex items-center justify-center font-normal border border-solid text-base px-8 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 bg-smythos-blue-500 text-white border-transparent hover:bg-smyth-blue disabled:opacity-50 disabled:cursor-not-allowed"disabled><span>Send</span>