PLT-5356 - Fixing margins for paragraphs (#5217)
* PLT-5356 - Fixing margins for paragraphs * Fixing conflict * Fixing font size for paragraphs
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
36f43edba3
Коммит
baf4b9a453
@@ -313,6 +313,10 @@ export default class RhsComment extends React.Component {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (PostUtils.isEdited(this.props.post)) {
|
||||||
|
postClass += ' post--edited';
|
||||||
|
}
|
||||||
|
|
||||||
let systemMessageClass = '';
|
let systemMessageClass = '';
|
||||||
if (isSystemMessage) {
|
if (isSystemMessage) {
|
||||||
systemMessageClass = 'post--system';
|
systemMessageClass = 'post--system';
|
||||||
|
|||||||
@@ -341,6 +341,7 @@ export default class RhsRootPost extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let compactClass = '';
|
let compactClass = '';
|
||||||
|
let postClass = '';
|
||||||
if (this.props.compactDisplay) {
|
if (this.props.compactDisplay) {
|
||||||
compactClass = 'post--compact';
|
compactClass = 'post--compact';
|
||||||
|
|
||||||
@@ -362,6 +363,10 @@ export default class RhsRootPost extends React.Component {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (PostUtils.isEdited(this.props.post)) {
|
||||||
|
postClass += ' post--edited';
|
||||||
|
}
|
||||||
|
|
||||||
const profilePicContainer = (<div className='post__img'>{profilePic}</div>);
|
const profilePicContainer = (<div className='post__img'>{profilePic}</div>);
|
||||||
|
|
||||||
let flag;
|
let flag;
|
||||||
@@ -447,11 +452,13 @@ export default class RhsRootPost extends React.Component {
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<div className='post__body'>
|
<div className='post__body'>
|
||||||
<PostBodyAdditionalContent
|
<div className={postClass}>
|
||||||
post={post}
|
<PostBodyAdditionalContent
|
||||||
message={<PostMessageContainer post={post}/>}
|
post={post}
|
||||||
previewCollapsed={this.props.previewCollapsed}
|
message={<PostMessageContainer post={post}/>}
|
||||||
/>
|
previewCollapsed={this.props.previewCollapsed}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
{fileAttachment}
|
{fileAttachment}
|
||||||
<ReactionListContainer
|
<ReactionListContainer
|
||||||
post={post}
|
post={post}
|
||||||
|
|||||||
@@ -717,32 +717,22 @@
|
|||||||
.post--edited {
|
.post--edited {
|
||||||
p {
|
p {
|
||||||
&:last-child {
|
&:last-child {
|
||||||
display: inline;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
font-size: .97em;
|
font-size: 13.5px;
|
||||||
line-height: 1.6em;
|
line-height: 1.6em;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
|
|
||||||
&:last-child {
|
|
||||||
margin-bottom: .5em;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.post__header--info {
|
.post__header--info {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
span {
|
|
||||||
p:last-child {
|
|
||||||
margin-bottom: .5em;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&.post--root {
|
&.post--root {
|
||||||
.comment-icon__container {
|
.comment-icon__container {
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
@@ -1023,7 +1013,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
p + p {
|
p + p {
|
||||||
margin: 1.2em 0;
|
margin: 1.2em 0 0;
|
||||||
|
|
||||||
&:last-of-type {
|
&:last-of-type {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
@@ -1036,7 +1026,7 @@
|
|||||||
|
|
||||||
ul,
|
ul,
|
||||||
ol {
|
ol {
|
||||||
font-size: .97em;
|
font-size: 13.5px;
|
||||||
margin-bottom: .4em;
|
margin-bottom: .4em;
|
||||||
padding-left: 20px;
|
padding-left: 20px;
|
||||||
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user