mirror of
https://github.com/flarum/framework.git
synced 2025-03-07 02:37:48 +08:00

- 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.
31 lines
472 B
Plaintext
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;
|
|
}
|