Skip to content

Commit ea5c2cd

Browse files
refactor: Downsize the search bar a bit (#2789)
1 parent ead3516 commit ea5c2cd

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

site/src/components/SearchBarWithFilter/SearchBarWithFilter.tsx

+11-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export const SearchBarWithFilter: React.FC<SearchBarWithFilterProps> = ({
112112
className={styles.inputStyles}
113113
onChange={form.handleChange}
114114
startAdornment={
115-
<InputAdornment position="start">
115+
<InputAdornment position="start" className={styles.searchIcon}>
116116
<SearchIcon fontSize="small" />
117117
</InputAdornment>
118118
}
@@ -183,5 +183,15 @@ const useStyles = makeStyles<Theme, StyleProps>((theme) => ({
183183
borderColor: (props) => props.error && theme.palette.error.contrastText,
184184
},
185185
},
186+
187+
"& .MuiInputBase-input": {
188+
paddingTop: "inherit",
189+
paddingBottom: "inherit",
190+
// The same as the button
191+
minHeight: 42,
192+
},
193+
},
194+
searchIcon: {
195+
color: theme.palette.text.secondary,
186196
},
187197
}))

0 commit comments

Comments
 (0)