mirror of
https://github.com/coder/coder.git
synced 2026-09-22 05:05:20 +08:00
refactor: Downsize the search bar a bit (#2789)
This commit is contained in:
@@ -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>
|
||||
}
|
||||
@@ -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,
|
||||
},
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user