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