1
0
mirror of https://github.com/flarum/core.git synced 2025-08-11 02:44:04 +02:00

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.
This commit is contained in:
Toby Zerner
2016-02-07 11:47:49 +10:30
parent 7359407b54
commit 50d88d4547
4 changed files with 17 additions and 31 deletions

View File

@@ -11,28 +11,18 @@ img.emoji {
position: absolute;
margin: 5px 0 !important;
> li > a {
white-space: normal;
border-bottom: 0;
}
> li > a:hover {
background: none;
}
.PostPreview {
> li > button {
color: @text-color;
font-weight: bold;
padding-top: 6px;
padding-bottom: 6px;
padding-left: 45px;
.emoji {
margin-right: 5px;
float: left;
margin-left: -30px;
}
}
.PostPreview-content {
overflow: hidden;
line-height: 1.7em;
display: block;
}
}
.ComposerBody-emojiWrapper {