fix: Truncate collaborator name in dropdown. (#7576)

This commit is contained in:
Barnabás Molnár 2024-01-21 20:36:09 +01:00 committed by GitHub
parent 1e7df58b5b
commit b66daae1f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 1 deletions

View file

@ -57,7 +57,9 @@ export const actionGoToCollaborator = register({
isBeingFollowed={isBeingFollowed}
isCurrentUser={collaborator.isCurrentUser === true}
/>
{collaborator.username}
<div className="UserList__collaborator-name">
{collaborator.username}
</div>
<div
className="UserList__collaborator-follow-status-icon"
style={{ visibility: isBeingFollowed ? "visible" : "hidden" }}

View file

@ -51,6 +51,12 @@
color: var(--color-gray-100);
}
.UserList__collaborator-name {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
.UserList__collaborator-follow-status-icon {
margin-left: auto;
flex: 0 0 auto;