diff --git a/css/emoji-mart.css b/css/emoji-mart.css index 3e4532b..b389c34 100644 --- a/css/emoji-mart.css +++ b/css/emoji-mart.css @@ -18,11 +18,16 @@ padding: 6px; } +.emoji-mart-bar { + border: 0 solid #d9d9d9; +} .emoji-mart-bar:first-child { + border-bottom-width: 1px; border-top-left-radius: 5px; border-top-right-radius: 5px; } .emoji-mart-bar:last-child { + border-top-width: 1px; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; } @@ -74,16 +79,17 @@ overflow-y: scroll; height: 270px; padding: 0 6px 6px 6px; - border: solid #d9d9d9; - border-width: 1px 0; } .emoji-mart-search { + margin-top: 6px; + padding: 0 6px; +} +.emoji-mart-search input { font-size: 16px; display: block; width: 100%; padding: .2em .6em; - margin-top: 6px; border-radius: 25px; border: 1px solid #d9d9d9; outline: 0; diff --git a/src/components/picker.js b/src/components/picker.js index df50e89..2a82e03 100644 --- a/src/components/picker.js +++ b/src/components/picker.js @@ -243,6 +243,8 @@ export default class Picker extends React.Component { } this.forceUpdate() + this.refs.scroll.scrollTop = 0 + this.handleScroll() } handleAnchorClick(category, i) { @@ -308,17 +310,17 @@ export default class Picker extends React.Component { /> -
- + +
{this.getCategories().map((category, i) => { return + return
+ +
} }