Prevent text wrapping in Badge component (#38691)

This commit is contained in:
diondiondion
2026-04-15 14:06:26 +02:00
committed by GitHub
parent e71d6fa344
commit 298fc7ce4c
3 changed files with 11 additions and 10 deletions

View File

@@ -52,8 +52,10 @@ export const Badge: FC<BadgeProps> = ({
data-account-role-id={roleId}
>
{icon}
<span>{label}</span>
{domain && <span className={classes.domain}>{domain}</span>}
<span className={classes.content}>
{label}
{domain && <span className={classes.domain}> {domain}</span>}
</span>
</div>
);

View File

@@ -7,9 +7,9 @@
gap: 4px;
border-radius: 8px;
align-items: center;
overflow-wrap: anywhere;
> svg {
flex-shrink: 0;
width: auto;
height: 17px;
fill: currentColor;
@@ -26,6 +26,12 @@
}
}
.content {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.domain {
opacity: 0.75;
letter-spacing: 0;

View File

@@ -10657,14 +10657,7 @@ noscript {
}
&__source {
overflow: hidden;
white-space: nowrap;
cursor: help;
> span {
overflow: hidden;
text-overflow: ellipsis;
}
}
}