diff --git a/src/pages/Support/Support.tsx b/src/pages/Support/Support.tsx
index 806e8aa..f739533 100644
--- a/src/pages/Support/Support.tsx
+++ b/src/pages/Support/Support.tsx
@@ -18,13 +18,8 @@ export default function Support() {
maxWidth="lg"
sx={{
pt: upMd ? "25px" : "20px",
- pb: upMd ? "70px" : "18px",
+ pb: upMd ? "82px" : "43px",
height: "100%",
- display: "flex",
- flexDirection: "column",
- }}
- outerContainerSx={{
- height: upMd ? undefined : "calc(100vh - 51px)",
}}
>
{upMd &&
@@ -50,18 +45,52 @@ export default function Support() {
:
<>
-
-
+
+
+
+
+
+
+
+
>
}
-
+
);
}
\ No newline at end of file
diff --git a/src/pages/Support/TicketCard.tsx b/src/pages/Support/TicketCard.tsx
index 32f996c..b11f683 100644
--- a/src/pages/Support/TicketCard.tsx
+++ b/src/pages/Support/TicketCard.tsx
@@ -1,6 +1,7 @@
import { Box, Typography, useMediaQuery, useTheme } from "@mui/material";
import CustomButton from "../../components/CustomButton";
import { Link as RouterLink } from "react-router-dom";
+import { useMemo } from "react";
interface Props {
@@ -14,6 +15,17 @@ export default function TicketCard({ name, body, time, ticketId }: Props) {
const theme = useTheme();
const upMd = useMediaQuery(theme.breakpoints.up("md"));
+ const timeText = useMemo(() => (
+ {time}
+ ), [theme.palette.grey2.main, time]);
+
return (
+ {!upMd && timeText}
- {name}
- {body}
+ {name}
+ {body}
- {time}
+ {upMd && timeText}
Перейти