tfrere commited on
Commit
35cbb5c
Β·
1 Parent(s): 108910e

fix quick filter mobile

Browse files
frontend/src/pages/LeaderboardPage/components/Leaderboard/components/Filters/QuickFilters.js CHANGED
@@ -45,6 +45,7 @@ export const QuickFiltersSkeleton = () => (
45
  display: "flex",
46
  flexDirection: { xs: "column", md: "column", lg: "row" },
47
  gap: 2,
 
48
  width: "100%",
49
  }}
50
  >
@@ -55,9 +56,18 @@ export const QuickFiltersSkeleton = () => (
55
  />
56
 
57
  {[1, 2, 3].map((i) => (
58
- <Skeleton key={i} width={120} height={32} sx={{ borderRadius: 1 }} />
 
 
 
 
 
59
  ))}
60
- <Skeleton width={150} height={32} sx={{ borderRadius: 1 }} />
 
 
 
 
61
  </Box>
62
  </Box>
63
  );
@@ -149,17 +159,19 @@ const QuickFilters = ({ totalCount = 0, loading = false }) => {
149
  >
150
  <QuickFiltersTitle />
151
  </Box>
152
-
153
  <Box
154
  sx={{
155
  display: "flex",
156
  flexDirection: { xs: "column", md: "row" },
157
- flexWrap: { md: "wrap" },
158
  gap: 1,
159
- width: { xs: "100%", lg: "auto" },
160
- "& > *": {
161
- width: { xs: "100%", md: "auto" },
162
- flex: { md: "0 0 auto" },
 
 
 
 
163
  },
164
  }}
165
  >
 
45
  display: "flex",
46
  flexDirection: { xs: "column", md: "column", lg: "row" },
47
  gap: 2,
48
+ mb: 2,
49
  width: "100%",
50
  }}
51
  >
 
56
  />
57
 
58
  {[1, 2, 3].map((i) => (
59
+ <Skeleton
60
+ key={i}
61
+ width={{ xs: "100%", md: 150 }}
62
+ height={32}
63
+ sx={{ borderRadius: 1 }}
64
+ />
65
  ))}
66
+ <Skeleton
67
+ width={{ xs: "100%", md: 150 }}
68
+ height={32}
69
+ sx={{ borderRadius: 1 }}
70
+ />
71
  </Box>
72
  </Box>
73
  );
 
159
  >
160
  <QuickFiltersTitle />
161
  </Box>
 
162
  <Box
163
  sx={{
164
  display: "flex",
165
  flexDirection: { xs: "column", md: "row" },
 
166
  gap: 1,
167
+ width: "100%",
168
+ "& > div": {
169
+ width: { xs: "100%", md: 0, lg: "auto" },
170
+ flex: {
171
+ xs: "auto",
172
+ md: "1 1 0",
173
+ lg: "0 0 auto",
174
+ },
175
  },
176
  }}
177
  >