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: 86eue1t3q : hover over truncated title text should show full text after small delay

samme-abdul59f5e4152c60
diff --git a/packages/app/src/builder-ui/components/Component.class/settings-editor.ts b/packages/app/src/builder-ui/components/Component.class/settings-editor.ts
index 7de5fe29..0cfc8b31 100644
--- a/packages/app/src/builder-ui/components/Component.class/settings-editor.ts
+++ b/packages/app/src/builder-ui/components/Component.class/settings-editor.ts
@@ -1148,11 +1148,20 @@ function generateSidebarTitleHTML(component: Component): string {
// Combine the generated icon HTML (if any) and the title text into the final sidebar title structure
const sidebarTitleHTML = `
- <div class="flex items-center gap-2">
- ${iconHTML}
- <span class="truncate">${templateName}</span>
+ <div class="inline-flex items-center gap-2 max-w-full min-w-0">
+ <span class="shrink-0 inline-flex items-center">${iconHTML}</span>
+ <span class="relative min-w-0 max-w-full flex-1">
+ <span class="truncate block min-w-0 max-w-full leading-tight">${templateName}</span>
+ <div
+ role="tooltip"
+ class="absolute left-0 top-full mt-1 z-50 inline-block text-sm w-max bg-black shadow-lg text-white py-2 px-4 rounded-lg opacity-0 invisible tooltip whitespace-normal break-words text-left max-w-full pointer-events-none"
+ >
+ ${templateName}
+ </div>
+ </span>
</div>
`;
return sidebarTitleHTML;
}
+
diff --git a/packages/app/src/builder-ui/ui/dialogs.ts b/packages/app/src/builder-ui/ui/dialogs.ts
index fefd7869..bf1ba579 100644
--- a/packages/app/src/builder-ui/ui/dialogs.ts
+++ b/packages/app/src/builder-ui/ui/dialogs.ts
@@ -114,7 +114,12 @@ export async function createRightSidebar(title?, content?, actions?, trActions?,
const closeBtn: HTMLButtonElement = rightSidebar.querySelector('.close-btn');
const saveBtn: HTMLButtonElement = rightSidebar.querySelector('.save-btn');
- if (title) sidebarTitle.innerHTML = title;
+ if (title) sidebarTitle.innerHTML = `<div class="inline-flex items-center gap-2 min-w-0 max-w-full">${title}</div>`;
+ // Ensure title container doesn't affect vertical alignment of adjacent actions
+ (sidebarTitle as HTMLElement).style.display = 'inline-flex';
+ (sidebarTitle as HTMLElement).style.alignItems = 'center';
+ (sidebarTitle as HTMLElement).style.minWidth = '0px';
+ (sidebarTitle as HTMLElement).style.maxWidth = '100%';
if (content) sidebarContent.innerHTML = content;
if (closeBtn) {
closeBtn.onclick = async () => {
@@ -1108,7 +1113,11 @@ export function sidebarEditValues({
$(container).css('opacity', 0);
// Set content immediately without delay
- sidebar.querySelector('.title').innerHTML = title || '';
+ const sidebarTitleEl = sidebar.querySelector('.title') as HTMLElement;
+ sidebarTitleEl.innerHTML = title || '';
+ // Ensure tooltip inside title is not clipped by container overflow from truncate
+ sidebarTitleEl.classList.remove('truncate');
+ sidebarTitleEl.style.overflow = 'visible';
const sidebarContent = sidebar.querySelector('.content');
const sidebarActions = sidebar.querySelector('.actions .action-content');
sidebarContent.innerHTML = '';
diff --git a/packages/app/static/css/smyth-builder-override.css b/packages/app/static/css/smyth-builder-override.css
index 1ecb95ca..3b413ae4 100644
--- a/packages/app/static/css/smyth-builder-override.css
+++ b/packages/app/static/css/smyth-builder-override.css
@@ -576,6 +576,17 @@
padding: 8px !important;
}
+/* Ensure tooltip inside right sidebar title is not clipped */
+.right-sidebar .right-sidebar-title .title {
+ overflow: visible !important;
+}
+
+/* Show title tooltip on hover (no JS) */
+.right-sidebar .right-sidebar-title .title:hover [role="tooltip"] {
+ opacity: 1 !important;
+ visibility: visible !important;
+}
+
.smt-input-div {
background-color: #fafafa !important;
padding: 5px !important;
diff --git a/packages/app/views/pages/partials/studio/right-sidebar.ejs b/packages/app/views/pages/partials/studio/right-sidebar.ejs
index 6be01536..b0c78189 100644
--- a/packages/app/views/pages/partials/studio/right-sidebar.ejs
+++ b/packages/app/views/pages/partials/studio/right-sidebar.ejs
@@ -31,7 +31,7 @@
data-tooltip-target="tooltip-save-close"
data-tooltip-placement="left"
>
- <span class="mif-cross"></span>
+ <span class="mt-1 mif-cross"></span>
</button>
<div
id="tooltip-save-close"
@@ -47,7 +47,7 @@
data-tooltip-target="tooltip-close"
data-tooltip-placement="left"
>
- <span class="mif-cross"></span>
+ <span class="mt-1 mif-cross"></span>
</button>
<div
id="tooltip-close"