aboutsummaryrefslogtreecommitdiff
path: root/src/components/Header
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-07-03 17:39:51 +0300
committereug-vs <eug-vs@keemail.me>2020-07-03 17:41:31 +0300
commit58d4c457ba418837acfceaac6ed787797ca73a6b (patch)
tree4e44a37003a57eab31fa7580f8f26083214c468b /src/components/Header
parente6c8ec8d1cd861ec2bbe0b85e97f9c931375a06f (diff)
downloadwhich-ui-58d4c457ba418837acfceaac6ed787797ca73a6b.tar.gz
feat: remove padding from search results
Diffstat (limited to 'src/components/Header')
-rw-r--r--src/components/Header/SearchBar.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/Header/SearchBar.tsx b/src/components/Header/SearchBar.tsx
index 253e77f..ba0943b 100644
--- a/src/components/Header/SearchBar.tsx
+++ b/src/components/Header/SearchBar.tsx
@@ -31,6 +31,9 @@ const useStyles = makeStyles(theme => ({
position: 'absolute',
width: '100%',
top: theme.spacing(5)
+ },
+ listItem: {
+ padding: 0
}
}));
@@ -77,7 +80,7 @@ const SearchBar: React.FC = () => {
{
results.map((result, index) => (
<div key={result._id}>
- <ListItem button onClick={handleNavigate(index)}>
+ <ListItem button onClick={handleNavigate(index)} className={classes.listItem}>
<UserStrip user={result} />
</ListItem>
{(index < results.length - 1) && <Divider />}