[Glitch] Prevent text wrapping in Badge component

Port 298fc7ce4c86fd3a723937ae47090eda3b70ddce to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
diondiondion 2026-04-15 14:06:26 +02:00 committed by Claire
parent 3ed2f28301
commit 25f4e44580
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

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