stacking fields

This commit is contained in:
Alex Holliday committed 2026-01-24 01:08:44 +00:00
1 parent 9904626526
commit 3dbbe035a8
3 files changed
+8 -4

No files matched your search

@@ -1,6 +1,7 @@
import Stack from "@mui/material/Stack";
import { Select, Button } from "@/Components/v2/inputs";
import MenuItem from "@mui/material/MenuItem";
import useMediaQuery from "@mui/material/useMediaQuery";
import type { MonitorType } from "@/Types/Monitor";
import { Typography, useTheme } from "@mui/material";
@@ -27,11 +28,12 @@ export const FilterControls = ({
onClearFilters: () => void;
}) => {
const theme = useTheme();
const isSmall = useMediaQuery(theme.breakpoints.down("md"));
const isFilterActive =
selectedTypes.length > 0 || selectedStatus !== "" || selectedState !== "";
return (
<Stack
direction="row"
direction={isSmall ? "column" : "row"}
gap={theme.spacing(2)}
>
<Select
+3 -2
View File
@@ -127,8 +127,9 @@ const UptimeMonitorsPage = () => {
</Stack>
<Stack
direction="row"
justifyContent={"space-between"}
direction={isSmall ? "column" : "row"}
justifyContent={isSmall ? "flex-start" : "space-between"}
gap={theme.spacing(4)}
>
<FilterControls
selectedTypes={selectedTypes}
+2 -1
View File
@@ -19,7 +19,8 @@
"name": "Name",
"status": "Status",
"type": "Type"
}
},
"empty": "Nothing h"
}
},
"submit": "Submit",