Web:Common:Section: fix section width on login page

This commit is contained in:
Timofey Boyko 2022-04-01 17:39:06 +03:00
parent f4bafb03a0
commit 11bd8e524e
2 changed files with 9 additions and 0 deletions

View File

@ -276,6 +276,7 @@ class Section extends React.Component {
viewAs={viewAs}
maintenanceExist={maintenanceExist}
isSectionBarAvailable={isSectionBarAvailable}
isSectionHeaderAvailable={isSectionHeaderAvailable}
>
{!isMobile && (
<StyledMainBar

View File

@ -83,6 +83,14 @@ const StyledSectionContainer = styled.section`
right: 15px;
bottom: 83px;
}
${(props) =>
!props.isSectionHeaderAvailable &&
css`
width: 100vw !important;
max-width: 100vw !important;
box-sizing: border-box;
`}
`;
StyledSectionContainer.defaultProps = { theme: Base };