diff --git a/src/components/ui/popup/popup.scss b/src/components/ui/popup/popup.scss index 8432d86..c99a657 100644 --- a/src/components/ui/popup/popup.scss +++ b/src/components/ui/popup/popup.scss @@ -46,9 +46,9 @@ $popupMargin: 20px; // Отступ попапа от краёв окна } .popupWrapper { - box-sizing: content-box; - margin: $popupMargin auto; - padding: 0 $popupMargin; + box-sizing: border-box; + margin: 0 auto; + padding: $popupMargin; display: inline-block; width: 100%; @@ -143,6 +143,7 @@ $popupInitPosition: translateY(10%) rotateX(-8deg); .trLeave { opacity: 1; + overflow: hidden; .popup { opacity: 1; diff --git a/src/index.scss b/src/index.scss index b791e07..9f91f8d 100644 --- a/src/index.scss +++ b/src/index.scss @@ -14,7 +14,6 @@ body { background: $light; color: #444; font-size: 16px; - overflow: hidden; } b { diff --git a/src/pages/profile/profile.scss b/src/pages/profile/profile.scss index cf0b9d6..01ae05e 100644 --- a/src/pages/profile/profile.scss +++ b/src/pages/profile/profile.scss @@ -1,8 +1,4 @@ .container { - min-height: 100%; - position: relative; - box-sizing: border-box; - padding: 55px 10px 65px; // 65px for footer } diff --git a/src/pages/root/RootPage.jsx b/src/pages/root/RootPage.jsx index afef0f4..0f6beec 100644 --- a/src/pages/root/RootPage.jsx +++ b/src/pages/root/RootPage.jsx @@ -22,6 +22,8 @@ if (process.env.NODE_ENV === 'production') { function RootPage(props) { const isRegisterPage = props.location.pathname === '/register'; + document.body.style.overflow = props.isPopupActive ? 'hidden' : ''; + return (