diff --git a/README.md b/README.md index f47d258..170660e 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ import { Picker } from 'emoji-mart' #### I18n ```js search: 'Search', -notfound: 'No emoji found', +notfound: 'No Emoji Found', categories: { search: 'Search Results', recent: 'Frequently Used', diff --git a/css/emoji-mart.css b/css/emoji-mart.css index 37fc3dc..dd4960d 100644 --- a/css/emoji-mart.css +++ b/css/emoji-mart.css @@ -104,9 +104,6 @@ background-color: #f4f4f4; border-radius: 100%; } -.emoji-mart-no-results .emoji-mart-emoji:hover:before { - content: none; -} .emoji-mart-category-label { z-index: 2; @@ -137,9 +134,14 @@ padding-top: 70px; color: #858585; } -.emoji-mart-no-results span { - display: inline-block; - vertical-align: middle; +.emoji-mart-no-results .emoji-mart-category-label { + display: none; +} +.emoji-mart-no-results .emoji-mart-no-results-label { + margin-top: .2em; +} +.emoji-mart-no-results .emoji-mart-emoji:hover:before { + content: none; } .emoji-mart-preview { diff --git a/src/components/category.js b/src/components/category.js index 94b8a99..21255d7 100644 --- a/src/components/category.js +++ b/src/components/category.js @@ -118,7 +118,7 @@ export default class Category extends React.Component { } } - return
+ return
{i18n.categories[name.toLowerCase()]}
@@ -132,19 +132,21 @@ export default class Category extends React.Component { )} {emojis && !emojis.length && -
- +
+
+ +
- +
{i18n.notfound} - +
}
diff --git a/src/components/picker.js b/src/components/picker.js index 4a1d6fe..f6f03a3 100644 --- a/src/components/picker.js +++ b/src/components/picker.js @@ -14,7 +14,7 @@ const SEARCH_CATEGORY = { name: 'Search', emojis: null, anchor: false } const I18N = { search: 'Search', - notfound: 'No emoji found', + notfound: 'No Emoji Found', categories: { search: 'Search Results', recent: 'Frequently Used',