From 0d687779eb29ac9506731becfa3976cce90695ba Mon Sep 17 00:00:00 2001 From: Tamara Date: Mon, 19 Dec 2022 23:15:00 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B0=D0=B4=D0=B0=D0=BF=D1=82=D0=B8=D0=B2?= =?UTF-8?q?=D0=BD=D0=BE=D1=81=D1=82=D1=8C=20=D0=B4=D0=BB=D1=8F=20=D1=82?= =?UTF-8?q?=D0=B0=D1=80=D0=B8=D1=84=D0=BE=D0=B2=20=D0=B8=20=D1=81=D1=82?= =?UTF-8?q?=D1=80=D0=B0=D0=BD=D0=B8=D1=86=D1=8B=20=D0=BF=D0=BE=D0=BB=D1=8C?= =?UTF-8?q?=D0=B7=D0=BE=D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D0=B5=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Content/Tariffs/Contractor/index.tsx | 9 +-- .../Content/Tariffs/DataGridElement/index.tsx | 41 +++++++---- .../LoggedIn/Content/Tariffs/Quiz/index.tsx | 9 +-- .../Content/Tariffs/Templater/index.tsx | 12 ++-- .../LoggedIn/Content/Users/index.tsx | 69 ++++++++++++------- src/Components/LoggedIn/Content/index.tsx | 2 +- src/Components/LoggedIn/Header/index.tsx | 12 ++-- src/Components/Sections/index.tsx | 16 ++--- 8 files changed, 94 insertions(+), 76 deletions(-) diff --git a/src/Components/LoggedIn/Content/Tariffs/Contractor/index.tsx b/src/Components/LoggedIn/Content/Tariffs/Contractor/index.tsx index 1b756a6..2a0e466 100644 --- a/src/Components/LoggedIn/Content/Tariffs/Contractor/index.tsx +++ b/src/Components/LoggedIn/Content/Tariffs/Contractor/index.tsx @@ -36,8 +36,7 @@ const Contractor: React.FC = ({ openModal }) => { onClick={ () => openModal(3, 1) } sx={{ backgroundColor: theme.palette.menu.main, - width: "320px", - height: "82px", + padding: '11px 65px', fontWeight: "normal", fontSize: "17px", "&:hover": { @@ -51,8 +50,7 @@ const Contractor: React.FC = ({ openModal }) => { onClick={ () => openModal(3, 1) } sx={{ backgroundColor: theme.palette.menu.main, - width: "320px", - height: "82px", + padding: '11px 65px', fontWeight: "normal", fontSize: "17px", "&:hover": { @@ -65,8 +63,7 @@ const Contractor: React.FC = ({ openModal }) => { variant = "contained" sx={{ backgroundColor: theme.palette.menu.main, - width: "320px", - height: "52px", + padding: '11px 65px', fontWeight: "normal", fontSize: "17px", "&:hover": { diff --git a/src/Components/LoggedIn/Content/Tariffs/DataGridElement/index.tsx b/src/Components/LoggedIn/Content/Tariffs/DataGridElement/index.tsx index 6ef0326..5518276 100644 --- a/src/Components/LoggedIn/Content/Tariffs/DataGridElement/index.tsx +++ b/src/Components/LoggedIn/Content/Tariffs/DataGridElement/index.tsx @@ -305,7 +305,7 @@ console.log(amount) } return ( - + openModal() } sx={{ backgroundColor: theme.palette.menu.main, - width: "320px", - height: "42px", + padding: "6px 30px", fontWeight: "normal", fontSize: "17px", marginTop: "45px", marginBottom: "15px", + maxWidth: '320px', + width: '100%', "&:hover": { backgroundColor: theme.palette.grayMedium.main } @@ -366,8 +367,7 @@ console.log(amount) onClick={ () => handleToBasket() } sx={{ backgroundColor: theme.palette.menu.main, - width: "320px", - height: "42px", + padding: "6px 69px", fontWeight: "normal", fontSize: "17px", marginBottom: "95px", @@ -386,8 +386,9 @@ console.log(amount) alignItems: "center", marginBottom: "45px", }}> - @@ -488,7 +489,8 @@ console.log(amount) display: "flex", marginTop: "15px", marginBottom: "15px", - width: "350px", + maxWidth: "350px", + width: '100%', justifyContent: "space-between" }}> @@ -539,15 +543,28 @@ console.log(amount) = ({ openModal }) => { onClick={ () => openModal(2, 1) } sx={{ backgroundColor: theme.palette.menu.main, - width: "320px", - height: "52px", + padding: "11px 43px", fontWeight: "normal", fontSize: "17px", "&:hover": { @@ -51,8 +50,7 @@ const Quiz: React.FC = ({ openModal }) => { onClick={ () => openModal(2, 0) } sx={{ backgroundColor: theme.palette.menu.main, - width: "320px", - height: "52px", + padding: '11px 43px', fontWeight: "normal", fontSize: "17px", "&:hover": { @@ -65,8 +63,7 @@ const Quiz: React.FC = ({ openModal }) => { variant = "contained" sx={{ backgroundColor: theme.palette.menu.main, - width: "320px", - height: "52px", + padding: '11px 43px', fontWeight: "normal", fontSize: "17px", "&:hover": { diff --git a/src/Components/LoggedIn/Content/Tariffs/Templater/index.tsx b/src/Components/LoggedIn/Content/Tariffs/Templater/index.tsx index 9f01d41..4a5b9e7 100644 --- a/src/Components/LoggedIn/Content/Tariffs/Templater/index.tsx +++ b/src/Components/LoggedIn/Content/Tariffs/Templater/index.tsx @@ -36,10 +36,9 @@ const Templater: React.FC = ({ openModal }) => { onClick={ () => openModal(1, 1) } sx={{ backgroundColor: theme.palette.menu.main, - width: "320px", - height: "52px", fontWeight: "normal", fontSize: "17px", + padding: '11px 25px', "&:hover": { backgroundColor: theme.palette.grayMedium.main } @@ -51,8 +50,7 @@ const Templater: React.FC = ({ openModal }) => { onClick={ () => openModal(1, 0) } sx={{ backgroundColor: theme.palette.menu.main, - width: "320px", - height: "52px", + padding: '11px 25px', fontWeight: "normal", fontSize: "17px", "&:hover": { @@ -66,8 +64,7 @@ const Templater: React.FC = ({ openModal }) => { onClick={ () => openModal(1, 2) } sx={{ backgroundColor: theme.palette.menu.main, - width: "320px", - height: "52px", + padding: '11px 25px', fontWeight: "normal", fontSize: "17px", "&:hover": { @@ -80,8 +77,7 @@ const Templater: React.FC = ({ openModal }) => { variant = "contained" sx={{ backgroundColor: theme.palette.menu.main, - width: "320px", - height: "52px", + padding: '11px 25px', fontWeight: "normal", fontSize: "17px", "&:hover": { diff --git a/src/Components/LoggedIn/Content/Users/index.tsx b/src/Components/LoggedIn/Content/Users/index.tsx index f59ee13..7cdce37 100644 --- a/src/Components/LoggedIn/Content/Users/index.tsx +++ b/src/Components/LoggedIn/Content/Users/index.tsx @@ -64,8 +64,7 @@ const Users: React.FC = () => { variant="text" onClick={ () => navigate("/modalAdmin") } sx={{ - width: "90%", - height: "60px", + width: "84%", display: "flex", flexDirection: "column", justifyContent: "center", @@ -84,7 +83,7 @@ const Users: React.FC = () => { { color: theme.palette.secondary.main } }} /> - + display: 'flex', + justifyContent: 'center', + maxWidth: '317px', + width: '100%' + }} + > + + @@ -291,18 +299,27 @@ const Users: React.FC = () => { color: theme.palette.secondary.main } }} /> - + + + diff --git a/src/Components/LoggedIn/Content/index.tsx b/src/Components/LoggedIn/Content/index.tsx index d1df6ea..6d7b90c 100644 --- a/src/Components/LoggedIn/Content/index.tsx +++ b/src/Components/LoggedIn/Content/index.tsx @@ -38,7 +38,7 @@ const Content: React.FC = ({ section }) => { alignItems: "center", overflow: "auto", overflowY: "auto", - padding: "60px" + padding: "60px 0" }}> { componentsArray[ section ] } diff --git a/src/Components/LoggedIn/Header/index.tsx b/src/Components/LoggedIn/Header/index.tsx index b5f7927..34c1982 100644 --- a/src/Components/LoggedIn/Header/index.tsx +++ b/src/Components/LoggedIn/Header/index.tsx @@ -11,11 +11,13 @@ const Header: React.FC = () => { { { {