пофиксил отображение нижнего меню в Странице Вопроса

This commit is contained in:
ArtChaos189 2023-12-28 00:17:39 +03:00
parent 9bc786c108
commit 13c09684ba

@ -98,6 +98,7 @@ export default function EditPage() {
const navigate = useNavigate();
const currentStep = useQuizStore((state) => state.currentStep);
const isTablet = useMediaQuery(theme.breakpoints.down(1000));
const isBranchingLogic = useMediaQuery(theme.breakpoints.down(1100));
const isMobile = useMediaQuery(theme.breakpoints.down(660));
const isMobileSm = useMediaQuery(theme.breakpoints.down(370));
const [mobileSidebar, setMobileSidebar] = useState<boolean>(false);
@ -327,7 +328,13 @@ export default function EditPage() {
sx={{
padding: isMobile ? "16px 16px 20px 16px" : "25px 25px 20px 25px",
overflow: "auto",
height: isMobile ? ` calc(100vh - 125px) ` : `calc(100vh - ${isConditionMet ? "199px" : "166px"})`,
height: isMobile
? `calc(100vh - 125px)`
: isConditionMet
? isBranchingLogic
? `calc(100vh - 166px)`
: `calc(100vh - 186px)`
: `calc(100vh - 166px)`,
boxSizing: "border-box",
}}
>
@ -359,7 +366,7 @@ export default function EditPage() {
}}
>
{isConditionMet &&
(isMobile ? (
(isBranchingLogic ? (
<Box
sx={{
width: "77px",
@ -433,7 +440,7 @@ export default function EditPage() {
) : (
<Box
sx={{
display: isMobile ? "none" : "flex",
display: "flex",
alignItems: "center",
gap: "15px",
padding: "18px",
@ -486,7 +493,9 @@ export default function EditPage() {
}}
/>
<Box>
<Typography sx={{ fontWeight: "bold", color: "#4D4D4D" }}>Логика ветвления</Typography>
<Typography sx={{ fontWeight: "bold", color: "#4D4D4D", whiteSpace: "nowrap" }}>
Логика ветвления
</Typography>
</Box>
</Box>
))}
@ -549,7 +558,6 @@ export default function EditPage() {
<Box
component={Link}
sx={{
width: "100%",
whiteSpace: "nowrap",
textOverflow: "ellipsis",
overflow: "hidden",