[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:
parent
3ed2f28301
commit
25f4e44580
@ -52,8 +52,10 @@ export const Badge: FC<BadgeProps> = ({
|
|||||||
data-account-role-id={roleId}
|
data-account-role-id={roleId}
|
||||||
>
|
>
|
||||||
{icon}
|
{icon}
|
||||||
<span>{label}</span>
|
<span className={classes.content}>
|
||||||
{domain && <span className={classes.domain}>{domain}</span>}
|
{label}
|
||||||
|
{domain && <span className={classes.domain}> {domain}</span>}
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -7,9 +7,9 @@
|
|||||||
gap: 4px;
|
gap: 4px;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
overflow-wrap: anywhere;
|
|
||||||
|
|
||||||
> svg {
|
> svg {
|
||||||
|
flex-shrink: 0;
|
||||||
width: auto;
|
width: auto;
|
||||||
height: 17px;
|
height: 17px;
|
||||||
fill: currentColor;
|
fill: currentColor;
|
||||||
@ -26,6 +26,12 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
|
||||||
.domain {
|
.domain {
|
||||||
opacity: 0.75;
|
opacity: 0.75;
|
||||||
letter-spacing: 0;
|
letter-spacing: 0;
|
||||||
|
|||||||
@ -10998,14 +10998,7 @@ noscript {
|
|||||||
}
|
}
|
||||||
|
|
||||||
&__source {
|
&__source {
|
||||||
overflow: hidden;
|
|
||||||
white-space: nowrap;
|
|
||||||
cursor: help;
|
cursor: help;
|
||||||
|
|
||||||
> span {
|
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user