Skip to content

Commit

Permalink
refactor: Downsize the search bar a bit (#2789)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoQuaresma committed Jul 1, 2022
1 parent ead3516 commit ea5c2cd
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion site/src/components/SearchBarWithFilter/SearchBarWithFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export const SearchBarWithFilter: React.FC<SearchBarWithFilterProps> = ({
className={styles.inputStyles}
onChange={form.handleChange}
startAdornment={
<InputAdornment position="start">
<InputAdornment position="start" className={styles.searchIcon}>
<SearchIcon fontSize="small" />
</InputAdornment>
}
Expand Down Expand Up @@ -183,5 +183,15 @@ const useStyles = makeStyles<Theme, StyleProps>((theme) => ({
borderColor: (props) => props.error && theme.palette.error.contrastText,
},
},

"& .MuiInputBase-input": {
paddingTop: "inherit",
paddingBottom: "inherit",
// The same as the button
minHeight: 42,
},
},
searchIcon: {
color: theme.palette.text.secondary,
},
}))

0 comments on commit ea5c2cd

Please sign in to comment.