Merge pull request #4107 from gdpelican/fix/long-emoji-styles

Fix for long emoji names in autocomplete
This commit is contained in:
Jeff Atwood 2016-03-22 12:53:45 -07:00
commit e8e9ce3a0b
2 changed files with 10 additions and 1 deletions

View File

@ -4,7 +4,8 @@
<li>
<a href>
{{#if option.src}}
<img src={{option.src}} class='emoji'> {{option.code}}
<img src={{option.src}} class='emoji'>
<span class='emoji-shortname'>{{option.code}}</span>
{{else}}
{{option.label}}
{{/if}}

View File

@ -100,3 +100,11 @@ table.emoji-page td {
.emoji-modal .nav a {
color: dark-light-choose(#333, #ccc);
}
.emoji-shortname {
display: inline-block;
max-width: 200px;
text-overflow: ellipsis;
overflow: hidden;
vertical-align: middle;
}