Skip to content

Commit d17861b

Browse files
committed
🧹
1 parent 605a34d commit d17861b

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

site/src/components/Dashboard/Navbar/NavbarView.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,11 @@ export const NavbarView: FC<NavbarViewProps> = ({
113113

114114
return (
115115
<nav
116-
css={(theme) => ({
116+
css={{
117117
height: navHeight,
118118
background: theme.palette.background.paper,
119119
borderBottom: `1px solid ${theme.palette.divider}`,
120-
})}
120+
}}
121121
>
122122
<div css={styles.wrapper}>
123123
<IconButton

site/src/components/Filter/filter.tsx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ export const Filter: FC<FilterProps> = ({
171171
learnMoreLink2,
172172
presets,
173173
}) => {
174+
const theme = useTheme();
174175
// Storing local copy of the filter query so that it can be updated more
175176
// aggressively without re-renders rippling out to the rest of the app every
176177
// single time. Exists for performance reasons - not really a good way to
@@ -198,9 +199,13 @@ export const Filter: FC<FilterProps> = ({
198199
<div
199200
css={{
200201
display: "flex",
201-
flexWrap: "wrap",
202202
gap: 8,
203203
marginBottom: 16,
204+
flexWrap: "nowrap",
205+
206+
[theme.breakpoints.down("md")]: {
207+
flexWrap: "wrap",
208+
},
204209
}}
205210
>
206211
{isLoading ? (
@@ -248,7 +253,7 @@ export const Filter: FC<FilterProps> = ({
248253
zIndex: 2,
249254
},
250255
"& input::placeholder": {
251-
color: (theme) => theme.palette.text.secondary,
256+
color: theme.palette.text.secondary,
252257
},
253258
"& .MuiInputAdornment-root": {
254259
marginLeft: 0,
@@ -260,10 +265,10 @@ export const Filter: FC<FilterProps> = ({
260265
startAdornment: (
261266
<InputAdornment position="start">
262267
<SearchOutlined
263-
css={(theme) => ({
268+
css={{
264269
fontSize: 14,
265270
color: theme.palette.text.secondary,
266-
})}
271+
}}
267272
/>
268273
</InputAdornment>
269274
),

0 commit comments

Comments
 (0)