We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66aa8cc commit dd7987fCopy full SHA for dd7987f
packages/compass-components/src/components/workspace-tabs/tab.tsx
@@ -180,6 +180,13 @@ const closeButtonStyles = css({
180
marginRight: spacing[100],
181
});
182
183
+const workspaceTabTooltipStyles = css({
184
+ whiteSpace: 'nowrap',
185
+ overflow: 'hidden',
186
+ textOverflow: 'ellipsis',
187
+ width: '100%',
188
+});
189
+
190
type TabProps = {
191
connectionName?: string;
192
type: string;
@@ -326,7 +333,7 @@ function Tab({
326
333
{tooltip && (
327
334
<div data-testid="workspace-tab-tooltip">
328
335
{tooltip.map(([label, value]) => (
329
- <div key={label}>
336
+ <div key={label} className={workspaceTabTooltipStyles}>
330
337
<b>{label}:</b> {value}
331
338
</div>
332
339
))}
0 commit comments