diff options
author | Noah Loomans <noahloomans@gmail.com> | 2018-01-24 16:08:49 +0100 |
---|---|---|
committer | Noah Loomans <noahloomans@gmail.com> | 2018-01-24 16:08:49 +0100 |
commit | 16723546de81e29fa8a31acc4070df5acb182b24 (patch) | |
tree | fb0db9fd517874a6794c74e558570c4b5953135d /src/client/react/components/container | |
parent | 0bddf7661d7ece709a18f2d167b928749638f318 (diff) |
Add basic styling to user page
Diffstat (limited to 'src/client/react/components/container')
-rw-r--r-- | src/client/react/components/container/Search.js | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/src/client/react/components/container/Search.js b/src/client/react/components/container/Search.js index 9a99833..8acbe99 100644 --- a/src/client/react/components/container/Search.js +++ b/src/client/react/components/container/Search.js @@ -89,25 +89,27 @@ class Search extends React.Component { } = this.state; return ( - <div className={classnames('search', { 'search--has-focus': hasFocus })}> - <div className="search__input-wrapper"> - <div className="search__icon-wrapper"> - <IconFromUserType - userType={isExactMatch ? users.byId[selectedResult].type : null} - defaultIcon={<SearchIcon />} + <div className="search"> + <div className={classnames('search-overflow', { 'search--has-focus': hasFocus })}> + <div className="search__input-wrapper"> + <div className="search__icon-wrapper"> + <IconFromUserType + userType={isExactMatch ? users.byId[selectedResult].type : null} + defaultIcon={<SearchIcon />} + /> + </div> + <input + id="search__input" + onChange={event => dispatch(inputChange(event.target.value))} + onKeyDown={this.onKeyDown} + value={searchText} + placeholder="Zoeken" + onFocus={this.onFocus} + onBlur={this.onBlur} /> </div> - <input - id="search__input" - onChange={event => dispatch(inputChange(event.target.value))} - onKeyDown={this.onKeyDown} - value={searchText} - placeholder="Zoeken" - onFocus={this.onFocus} - onBlur={this.onBlur} - /> + <Results /> </div> - <Results /> </div> ); } |