mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 20:24:05 -06:00
UX: Truncate (don't wrap) badges in user cards if the text is long
This commit is contained in:
parent
6c2fe7eaec
commit
94f8c4ecac
@ -289,6 +289,10 @@ $user_card_background: $secondary;
|
||||
margin-top: 5px;
|
||||
|
||||
.user-badge {
|
||||
display: flex;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
margin-right: 0.5em;
|
||||
background: $primary-very-low;
|
||||
border: 1px solid $primary-low;
|
||||
@ -305,6 +309,7 @@ $user_card_background: $secondary;
|
||||
.more-user-badges {
|
||||
@extend .user-badge;
|
||||
padding: 3px 8px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.suspended {
|
||||
|
Loading…
Reference in New Issue
Block a user