From 270eb4863a440e34dbdba2ed8d9dd97232aa24e3 Mon Sep 17 00:00:00 2001 From: ArtChaos189 Date: Wed, 27 Sep 2023 02:38:26 +0300 Subject: [PATCH] Tablet version update --- .../DraggableList/QuestionPageCard.tsx | 8 +++---- .../Questions/DropDown/settingDropDown.tsx | 24 ++++++++++++------- src/pages/Questions/Emoji/Emoji.tsx | 4 ++-- src/pages/Questions/Emoji/settingEmoji.tsx | 2 +- .../SettingOptionsAndPict.tsx | 20 ++++++++++------ .../Questions/OwnTextField/OwnTextField.tsx | 6 ++--- .../OwnTextField/settingTextField.tsx | 4 ++-- 7 files changed, 40 insertions(+), 28 deletions(-) diff --git a/src/pages/Questions/DraggableList/QuestionPageCard.tsx b/src/pages/Questions/DraggableList/QuestionPageCard.tsx index 9cb2fc73..51d80a8f 100644 --- a/src/pages/Questions/DraggableList/QuestionPageCard.tsx +++ b/src/pages/Questions/DraggableList/QuestionPageCard.tsx @@ -117,6 +117,7 @@ export default function QuestionsPageCard({ totalIndex, draggableProps, isDraggi p: 0, maxWidth: isTablet ? "549px" : "640px", width: "100%", + marginRight: isMobile ? "0px" : "16.1px", }} > @@ -233,19 +233,19 @@ export default function QuestionsPageCard({ totalIndex, draggableProps, isDraggi )} - + - + diff --git a/src/pages/Questions/DropDown/settingDropDown.tsx b/src/pages/Questions/DropDown/settingDropDown.tsx index c7987b4a..83062b31 100644 --- a/src/pages/Questions/DropDown/settingDropDown.tsx +++ b/src/pages/Questions/DropDown/settingDropDown.tsx @@ -52,6 +52,7 @@ export default function SettingDropDown({ totalIndex }: SettingDropDownProps) { flexDirection: "column", gap: "14px", width: "100%", + maxWidth: isFigmaTablte ? "297px" : "360px", }} > - + Текст в выпадающем списке + debounceAnswer(target.value)} + /> - debounceAnswer(target.value)} - /> )} - + @@ -75,26 +75,32 @@ export default function SettingOptionsAndPict({ totalIndex }: SettingOptionsAndP }} /> {!isWrappColumn && ( - <> + Текст-заглушка на картинке debounced(target.value)} /> - + )} debounced(target.value)} diff --git a/src/pages/Questions/OwnTextField/OwnTextField.tsx b/src/pages/Questions/OwnTextField/OwnTextField.tsx index cab34ec0..504a9964 100644 --- a/src/pages/Questions/OwnTextField/OwnTextField.tsx +++ b/src/pages/Questions/OwnTextField/OwnTextField.tsx @@ -39,18 +39,18 @@ export default function OwnTextField({ totalIndex }: Props) { width: "auto", maxWidth: "745px", display: "flex", - pb: "20px", + pb: "15px", pl: "20px", pr: "20px", flexDirection: "column", - gap: isMobile ? "18px" : "20px", + gap: isMobile ? "15px" : "20px", }} > debounced(target.value)} - sx={{ maxWidth: "640px", width: "100%" }} + sx={{ maxWidth: isFigmaTablte ? "549px" : "640px", width: "100%" }} />