mirror of
https://github.com/coder/coder.git
synced 2026-10-29 17:44:33 +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}
|
className={styles.inputStyles}
|
||||||
onChange={form.handleChange}
|
onChange={form.handleChange}
|
||||||
startAdornment={
|
startAdornment={
|
||||||
<InputAdornment position="start">
|
<InputAdornment position="start" className={styles.searchIcon}>
|
||||||
<SearchIcon fontSize="small" />
|
<SearchIcon fontSize="small" />
|
||||||
</InputAdornment>
|
</InputAdornment>
|
||||||
}
|
}
|
||||||
@@ -183,5 +183,15 @@ const useStyles = makeStyles<Theme, StyleProps>((theme) => ({
|
|||||||
borderColor: (props) => props.error && theme.palette.error.contrastText,
|
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