Toby Zerner 50d88d4547 Improve emoji autocomplete dropdown
- Add a key to each list item so that Mithril's diffing algorithm is used correctly. This prevents the emoji images from remaining for half a second before they update to a new suggestion.
- Clean up styles. The `PostPreview` doesn't really belong here.
2016-02-07 11:47:49 +10:30

31 lines
472 B
Plaintext

img.emoji {
height: 1.5em;
margin: 0 .05em 0 .1em;
vertical-align: -0.3em;
}
.EmojiDropdown {
max-width: 500px;
max-height: 200px;
overflow: auto;
position: absolute;
margin: 5px 0 !important;
> li > button {
color: @text-color;
font-weight: bold;
padding-top: 6px;
padding-bottom: 6px;
padding-left: 45px;
.emoji {
float: left;
margin-left: -30px;
}
}
}
.ComposerBody-emojiWrapper {
position: relative;
}