mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
Feat(Contacts:Search): Cooler layour
This commit is contained in:
1 parent
1368edd2af
commit
6219ebbdc0
1 file changed
+13
-1
@@ -23,7 +23,7 @@ const useStyles = makeStyles((theme: Theme) =>
|
|||||||
fontSize: 18
|
fontSize: 18
|
||||||
},
|
},
|
||||||
inputInput: {
|
inputInput: {
|
||||||
padding: theme.spacing(1, 2, 1, 2),
|
padding: theme.spacing(1, 4, 1, 4),
|
||||||
// vertical padding + font size from searchIcon
|
// vertical padding + font size from searchIcon
|
||||||
transition: theme.transitions.create('width'),
|
transition: theme.transitions.create('width'),
|
||||||
width: '100%',
|
width: '100%',
|
||||||
@@ -49,6 +49,15 @@ const useStyles = makeStyles((theme: Theme) =>
|
|||||||
width: 'auto',
|
width: 'auto',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
searchIcon: {
|
||||||
|
padding: theme.spacing(0, 0.5),
|
||||||
|
height: '100%',
|
||||||
|
position: 'absolute',
|
||||||
|
pointerEvents: 'none',
|
||||||
|
display: 'flex',
|
||||||
|
alignItems: 'center',
|
||||||
|
justifyContent: 'center',
|
||||||
|
},
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -68,6 +77,9 @@ export const SearchContacts = () => {
|
|||||||
return (
|
return (
|
||||||
<div className={classes.bg}>
|
<div className={classes.bg}>
|
||||||
<div className={classes.search}>
|
<div className={classes.search}>
|
||||||
|
<div className={classes.searchIcon}>
|
||||||
|
<SearchIcon style={{ color: '#fff' }} />
|
||||||
|
</div>
|
||||||
<InputBase
|
<InputBase
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
placeholder="Search contacts..."
|
placeholder="Search contacts..."
|
||||||
|
|||||||
Reference in new issue
Block a user