mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
fix: Truncate collaborator name in dropdown. (#7576)
This commit is contained in:
parent
1e7df58b5b
commit
b66daae1f3
2 changed files with 9 additions and 1 deletions
|
@ -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" }}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue