mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Truncate long network names (#12058)
In some languages, network names are longer than the visible width of the network dropdown. In these cases, the currently selected network will overflow the bounds of the network dropdown container. This commit addresses this issue so that the dropdown container will grow and shrink appropriately, truncating the currently selected network if needed.
This commit is contained in:
parent
0c2af43d3a
commit
d403644e59
@ -72,6 +72,7 @@
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
flex: 0 0 auto;
|
||||
margin-right: 1rem;
|
||||
|
||||
&--clickable {
|
||||
cursor: pointer;
|
||||
|
@ -35,6 +35,11 @@
|
||||
background-color: lighten($dodger-blue, 35%);
|
||||
}
|
||||
|
||||
&.chip {
|
||||
margin: 0;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
& .chip__label {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
|
Loading…
Reference in New Issue
Block a user