algolia / github-awesome-autocomplete

:octocat: Add instant search capabilities to GitHub's search bar
https://github.algolia.com
Other
1.07k stars 93 forks source link

long user name causes inconsistent format #81

Closed wangzewang closed 3 years ago

wangzewang commented 6 years ago

image

rayrutjes commented 6 years ago

Thanks for reporting this @wangzewang . Definitely something that should be adjusted.

Haroenv commented 6 years ago
.aa-suggestion.aa-user {
  white-space: nowrap;
  overflow: hidden;
}

not ideal, but couldn't get ellipsis to work

Haroenv commented 6 years ago

some other experimentation with this in more of the classes could help as well:

.aa-suggestion {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}