Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
))}
|
| 60 |
-
<Skeleton
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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:
|
| 160 |
-
"& >
|
| 161 |
-
width: { xs: "100%", md: "auto" },
|
| 162 |
-
flex: {
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
>
|