From e90ab69e5f4562f187b0ba74d614f75fa5fd2083 Mon Sep 17 00:00:00 2001 From: Victor Batischev Date: Tue, 5 Dec 2023 15:18:28 +0300 Subject: [PATCH] settings adaptive --- src/pages/PartnerSettings/PartnerSettings.jsx | 16 ++--- .../PartnerSettings/partnerSettings.scss | 67 +++++-------------- 2 files changed, 25 insertions(+), 58 deletions(-) diff --git a/src/pages/PartnerSettings/PartnerSettings.jsx b/src/pages/PartnerSettings/PartnerSettings.jsx index b2a71677..cb95704e 100644 --- a/src/pages/PartnerSettings/PartnerSettings.jsx +++ b/src/pages/PartnerSettings/PartnerSettings.jsx @@ -97,7 +97,7 @@ export const PartnerSettings = () => {

Вход в систему

-

Изменение логина

+

Изменение логина

{ )}
-

Изменение пароля

+

Изменение пароля

{

Документы и отчеты

-

Изменить провадера ЭДО

+

Изменить провадера ЭДО

-
-
-

+

Изменение названия компании

diff --git a/src/pages/PartnerSettings/partnerSettings.scss b/src/pages/PartnerSettings/partnerSettings.scss index b2ece0eb..21b02708 100644 --- a/src/pages/PartnerSettings/partnerSettings.scss +++ b/src/pages/PartnerSettings/partnerSettings.scss @@ -22,20 +22,11 @@ line-height: 24px; } - &__lable { - &-first, - &-second { - font-size: 15px; - line-height: 18px; - color: #000000; - } - - &-first { - margin: 39px 0 10px 0; - } - &-second { - margin: 15px 0 10px 0; - } + &__label { + font-size: 15px; + line-height: 18px; + color: #000000; + margin: 15px 0 10px 0; } &__input { @@ -46,7 +37,6 @@ padding: 5px 10px; background: #eff2f7; border-radius: 8px; - width: 373px; height: 35px; border: none; font-size: 15px; @@ -75,11 +65,12 @@ } &__buttons { - width: 87%; + width: 100%; display: flex; flex-direction: row; - justify-content: space-between; - margin: 36px 0 30px 0; + justify-content: flex-start; + gap: 20px; + margin: 30px 0 20px; &-cancel, &-save { @@ -113,7 +104,7 @@ } } - @media (max-width: 570px) { + @media (max-width: 800px) { &__input { width: 95%; } @@ -123,6 +114,7 @@ width: 100%; flex-direction: column-reverse; align-items: center; + gap: 0px; &-save { margin-bottom: 15px; @@ -132,13 +124,7 @@ } .checkbox { - &__first { - margin: 0px 0 0 20px; - } - - &__second { - margin: 0px 20px 0 0; - } + margin: 0px 0 0 20px; } .partner-settings { @@ -147,7 +133,7 @@ &__body { display: flex; flex-direction: row; - justify-content: space-between; + justify-content: space-around; margin-top: 27px; } @@ -197,15 +183,8 @@ } &__label { - &-first, - &-second { - display: flex; - align-items: center; - } - - &-second { - flex-direction: row-reverse; - } + display: flex; + align-items: center; } @media (max-width: 1200px) { @@ -227,10 +206,7 @@ } &__label { - &-second, - &-first { - flex-direction: row; - } + flex-direction: row; } } @@ -276,16 +252,7 @@ } &__label { - &-second, - &-first { - flex-direction: row; - } - } - - .checkbox { - &__second { - margin: 0px 0 0 20px; - } + flex-direction: row; } } }