Web: Common: fixed PageLayout section-body padding

This commit is contained in:
Nikita Gopienko 2020-02-12 14:18:57 +03:00
parent bc647d9c3d
commit f8eec21893

View File

@ -15,11 +15,11 @@ const StyledSectionBody = styled.div`
`; `;
const StyledSectionWrapper = styled.div` const StyledSectionWrapper = styled.div`
padding: 0px 8px 16px 24px; padding: 16px 8px 16px 24px;
outline: none; outline: none;
@media ${tablet} { @media ${tablet} {
padding: 0px 0 16px 24px; padding: 16px 0 16px 24px;
} }
`; `;
@ -58,7 +58,7 @@ class SectionBody extends React.Component {
<StyledSectionBody withScroll={withScroll}> <StyledSectionBody withScroll={withScroll}>
{withScroll ? ( {withScroll ? (
<Scrollbar stype="mediumBlack"> <Scrollbar stype="mediumBlack">
<StyledSectionWrapper {...focusProps}> <StyledSectionWrapper className="sectionWrapper" {...focusProps}>
{children} {children}
<StyledSpacer pinned={pinned}/> <StyledSpacer pinned={pinned}/>
</StyledSectionWrapper> </StyledSectionWrapper>