Skip to content

Commit 9802e98

Browse files
committed
More space (8px) between emoji and emoji name in autocompletion dropdown
Signed-off-by: Jonas Meurer <[email protected]>
1 parent a87f492 commit 9802e98

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/RichContenteditable/RichContenteditable.vue

+5-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ export default {
250250
// Where to inject the menu popup
251251
menuContainer: this.menuContainer,
252252
// Popup mention autocompletion templates
253-
menuItemTemplate: item => `${item.original.native} :${item.original.short_name}`,
253+
menuItemTemplate: item => `<span class="tribute-container-emoji__item__emoji">${item.original.native}</span> :${item.original.short_name}`,
254254
// Hide if no results
255255
noMatchTemplate: () => t('No emoji found'),
256256
// Display raw emoji along with its name
@@ -623,6 +623,10 @@ export default {
623623
&:last-child {
624624
margin-bottom: 0;
625625
}
626+
627+
&__emoji {
628+
padding-right: 8px;
629+
}
626630
}
627631

628632
.highlight {

0 commit comments

Comments
 (0)