Add max-width to emoji completions.

pull/21833/head
Aviral Dasgupta 2016-08-10 00:52:55 +05:30
parent 09e8a45cde
commit 1b414cad18
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ export default class EmojiProvider extends AutocompleteProvider {
completion: shortnameToUnicode(shortname),
component: (
<div className="mx_Autocomplete_Completion">
<span dangerouslySetInnerHTML={{__html: imageHTML}}></span> {shortname}
<span style={{maxWidth: '1em'}} dangerouslySetInnerHTML={{__html: imageHTML}}></span>&nbsp;&nbsp;{shortname}
</div>
),
range,