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:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user