From a2ccd7ae5076a26c5c37ad8c678ca0f1b8e707c6 Mon Sep 17 00:00:00 2001 From: Tamara Date: Sat, 16 Dec 2023 03:31:40 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8=20=D0=BF?= =?UTF-8?q?=D0=BE=20=D0=BC=D0=BE=D0=B1=D0=B8=D0=BB=D0=BA=D0=B5=20=D0=B2=20?= =?UTF-8?q?=D1=81=D1=82=D0=B0=D1=80=D1=82=D0=BE=D0=B2=D0=BE=D0=B9=20=D1=81?= =?UTF-8?q?=D1=82=D1=80=D0=B0=D0=BD=D0=B8=D1=86=D0=B5=20=D0=B8=20=D0=B2?= =?UTF-8?q?=D0=BE=D0=BF=D1=80=D0=BE=D1=81=D0=B0=D1=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/icons/ArrowLeftSP.tsx | 27 ++ src/pages/Questions/ButtonsOptionsAndPict.tsx | 1 + .../OptionsAndPicture/OptionsAndPicture.tsx | 348 +++++++++--------- src/pages/Questions/QuestionsPage.tsx | 4 +- src/pages/startPage/EditPage.tsx | 26 +- src/pages/startPage/StartPageSettings.tsx | 9 +- 6 files changed, 224 insertions(+), 191 deletions(-) create mode 100644 src/assets/icons/ArrowLeftSP.tsx diff --git a/src/assets/icons/ArrowLeftSP.tsx b/src/assets/icons/ArrowLeftSP.tsx new file mode 100644 index 00000000..1ba692e1 --- /dev/null +++ b/src/assets/icons/ArrowLeftSP.tsx @@ -0,0 +1,27 @@ +import {Box, SxProps, Theme, useTheme} from "@mui/material"; + + +interface Props { + right: boolean +} + +export default function ArrowLeftSP({right} : Props) { + const theme = useTheme(); + + return ( + + + + + + ); +} \ No newline at end of file diff --git a/src/pages/Questions/ButtonsOptionsAndPict.tsx b/src/pages/Questions/ButtonsOptionsAndPict.tsx index 972e99cd..b1b8f1d6 100644 --- a/src/pages/Questions/ButtonsOptionsAndPict.tsx +++ b/src/pages/Questions/ButtonsOptionsAndPict.tsx @@ -73,6 +73,7 @@ export default function ButtonsOptionsAndPict({ display: "flex", flexWrap: isMobile ? "wrap" : "nowrap", gap: "6px", + maxWidth: isMobile ? "200px" : undefined }} > - - - - - - {!isMobile && ( - - - - - - + - - - )} - - ), - endAdornment: ( - - - - - - - - - - - - ), - }} - sx={{ - "& .MuiInputBase-root": { - padding: "13.5px", - borderRadius: "10px", - background: "#ffffff", - height: "48px", - }, - "& .MuiOutlinedInput-notchedOutline": { - border: "none", - }, - }} - inputProps={{ - sx: { fontSize: "18px", lineHeight: "21px", py: 0 }, - }} - /> + {/**/} + {/* */} + {/* */} + {/* */} + {/* */} + {/* {!isMobile && (*/} + {/* */} + {/* */} + {/* */} + {/* */} + {/* */} + {/* +*/} + {/* */} + {/* */} + {/* )}*/} + {/* */} + {/* ),*/} + {/* endAdornment: (*/} + {/* */} + {/* */} + {/* */} + {/* */} + {/* */} + {/* */} + {/* */} + {/* */} + {/* */} + {/* */} + {/* */} + {/* ),*/} + {/* }}*/} + {/* sx={{*/} + {/* "& .MuiInputBase-root": {*/} + {/* padding: "13.5px",*/} + {/* borderRadius: "10px",*/} + {/* background: "#ffffff",*/} + {/* height: "48px",*/} + {/* },*/} + {/* "& .MuiOutlinedInput-notchedOutline": {*/} + {/* border: "none",*/} + {/* },*/} + {/* }}*/} + {/* inputProps={{*/} + {/* sx: { fontSize: "18px", lineHeight: "21px", py: 0 },*/} + {/* }}*/} + {/* />*/} - {isMobile && ( - - - - - - - - + - - - - )} - + {/*{isMobile && (*/} + {/* */} + {/* */} + {/* */} + {/* */} + {/* */} + {/* */} + {/* */} + {/* +*/} + {/* */} + {/* */} + {/* */} + {/*)}*/} + {/**/} { updateOpenBranchingPanel(false) @@ -79,7 +79,7 @@ export default function QuestionsPage() { sx={{ position: "fixed", left: isMobile ? "20px" : "250px", - bottom: "20px", + bottom: isMobile ? "140px" : "20px", }} data-cy="create-question" > diff --git a/src/pages/startPage/EditPage.tsx b/src/pages/startPage/EditPage.tsx index 27f791bf..81bb9d00 100755 --- a/src/pages/startPage/EditPage.tsx +++ b/src/pages/startPage/EditPage.tsx @@ -245,7 +245,7 @@ export default function EditPage() { left: 0, bottom: 0, width: "100%", - padding: "20px 40px", + padding: isMobile ? "20px 16px" : "20px 40px", display: "flex", justifyContent: "flex-end", gap: "15px", @@ -320,16 +320,20 @@ export default function EditPage() { )} - + + + + } diff --git a/src/pages/startPage/StartPageSettings.tsx b/src/pages/startPage/StartPageSettings.tsx index fa64b178..f6fa0f0f 100755 --- a/src/pages/startPage/StartPageSettings.tsx +++ b/src/pages/startPage/StartPageSettings.tsx @@ -2,6 +2,7 @@ import AlignCenterIcon from "@icons/AlignCenterIcon"; import AlignLeftIcon from "@icons/AlignLeftIcon"; import AlignRightIcon from "@icons/AlignRightIcon"; import ArrowDown from "@icons/ArrowDownIcon"; +import ArrowLeft from "@icons/ArrowLeftSP"; import LayoutCenteredIcon from "@icons/LayoutCenteredIcon"; import LayoutExpandedIcon from "@icons/LayoutExpandedIcon"; import LayoutStandartIcon from "@icons/LayoutStandartIcon"; @@ -652,7 +653,7 @@ export default function StartPageSettings() { )} {formState === "design" && ( )}