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.

Enhance button tooltip and class attributes for improved UI consistency

Muhammad Hamza Khanf108592f55ce
diff --git a/packages/app/src/builder-ui/components/GenAILLM.class.ts b/packages/app/src/builder-ui/components/GenAILLM.class.ts
index 24672bc6..0a5c2a8b 100644
--- a/packages/app/src/builder-ui/components/GenAILLM.class.ts
+++ b/packages/app/src/builder-ui/components/GenAILLM.class.ts
@@ -485,8 +485,12 @@ export class GenAILLM extends Component {
{
label: '$ View Pricing',
icon: 'dollar-sign',
- classes: 'text-gray-600 top-[-8px] right-6 hover:underline _model_pricing_link hidden',
- tooltip: 'SmythOS charges based on input and output tokens',
+ classes:
+ 'text-gray-600 top-[-8px] right-[-80px] shadow-none hover:underline _model_pricing_link hidden',
+ tooltip: {
+ text: 'SmythOS charges based on input and output tokens',
+ position: 'left',
+ },
events: {
click: () => {
window.open(
diff --git a/packages/app/src/builder-ui/ui/form/misc.ts b/packages/app/src/builder-ui/ui/form/misc.ts
index 058ca97a..a1532b44 100644
--- a/packages/app/src/builder-ui/ui/form/misc.ts
+++ b/packages/app/src/builder-ui/ui/form/misc.ts
@@ -18,7 +18,7 @@ export function createActionButton(action: Record<string, any>) {
button.type = 'button';
button.setAttribute(
'class',
- `field-action-btn absolute z-10 py-1 px-2 transition-opacity rounded-md h-8 hover:opacity-75 text-gray-400${
+ `field-action-btn absolute z-10 py-1 px-2 transition-opacity rounded-md h-8 text-gray-400${
action?.classes ? ' ' + action.classes : ''
}`,
);