Web: components: Added margin-bottom for fixed height of article.
This commit is contained in:
parent
fbf2c27910
commit
6b7bc650da
@ -273,7 +273,7 @@ class PageLayout extends React.Component {
|
||||
</SubArticleMainButton>
|
||||
)}
|
||||
{isArticleBodyAvailable && (
|
||||
<SubArticleBody>
|
||||
<SubArticleBody pinned={this.state.isArticlePinned}>
|
||||
{articleBodyContent ? articleBodyContent.props.children : null}
|
||||
</SubArticleBody>
|
||||
)}
|
||||
|
@ -4,6 +4,7 @@ import styled from "styled-components";
|
||||
import equal from "fast-deep-equal/react";
|
||||
import Scrollbar from "@appserver/components/scrollbar";
|
||||
import { tablet, smallTablet } from "@appserver/components/utils/device";
|
||||
import { isMobile } from "react-device-detect";
|
||||
|
||||
const StyledArticleBody = styled.div`
|
||||
${(props) => props.displayBorder && `outline: 1px dotted;`}
|
||||
@ -27,6 +28,7 @@ const StyledArticleBody = styled.div`
|
||||
|
||||
.people-tree-menu {
|
||||
margin-right: 0;
|
||||
${(props) => isMobile && props.pinned && `margin-bottom: 56px`}
|
||||
}
|
||||
|
||||
.custom-scrollbar {
|
||||
@ -56,10 +58,10 @@ class ArticleBody extends React.Component {
|
||||
|
||||
render() {
|
||||
//console.log("PageLayout ArticleBody render");
|
||||
const { children } = this.props;
|
||||
const { children, pinned } = this.props;
|
||||
|
||||
return (
|
||||
<StyledArticleBody>
|
||||
<StyledArticleBody pinned={pinned}>
|
||||
<Scrollbar
|
||||
id="articleScrollBar"
|
||||
className="custom-scrollbar"
|
||||
|
Loading…
Reference in New Issue
Block a user