mirror of
https://github.com/mastodon/mastodon.git
synced 2026-08-26 02:37:07 -05:00
Prevent text wrapping in Badge component (#38691)
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -10657,14 +10657,7 @@ noscript {
|
||||
}
|
||||
|
||||
&__source {
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
cursor: help;
|
||||
|
||||
> span {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user