Skip to content

Commit f78f0f1

Browse files
authored
chore: fix workspace tab tooltip overflow COMPASS-9244 (#6850)
* ellipsis if the connection name gets too long * actually rather ust break the line
1 parent fed93dc commit f78f0f1

File tree

1 file changed

+6
-1
lines changed
  • packages/compass-components/src/components/workspace-tabs

1 file changed

+6
-1
lines changed

packages/compass-components/src/components/workspace-tabs/tab.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,11 @@ const closeButtonStyles = css({
180180
marginRight: spacing[100],
181181
});
182182

183+
const workspaceTabTooltipStyles = css({
184+
overflowWrap: 'anywhere',
185+
textWrap: 'wrap',
186+
});
187+
183188
type TabProps = {
184189
connectionName?: string;
185190
type: string;
@@ -326,7 +331,7 @@ function Tab({
326331
{tooltip && (
327332
<div data-testid="workspace-tab-tooltip">
328333
{tooltip.map(([label, value]) => (
329-
<div key={label}>
334+
<div key={label} className={workspaceTabTooltipStyles}>
330335
<b>{label}:</b> {value}
331336
</div>
332337
))}

0 commit comments

Comments
 (0)