PLT-5484 Reduced scope of CSS rules for (edited) tag (#5599)
* PLT-5484 Reduced scope of CSS rules for (edited) tag * Reverted accidental change from div tags to spans
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
7016c6b3a1
Коммит
ca4181b5fe
@@ -78,7 +78,7 @@ export default class PostMessageView extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<span className='edited'>
|
<span className='post-edited-indicator'>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
id='post_message_view.edited'
|
id='post_message_view.edited'
|
||||||
defaultMessage='(edited)'
|
defaultMessage='(edited)'
|
||||||
@@ -93,13 +93,7 @@ export default class PostMessageView extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!this.props.enableFormatting) {
|
if (!this.props.enableFormatting) {
|
||||||
return (
|
return <span>{this.props.post.message}</span>;
|
||||||
<span>
|
|
||||||
{this.props.post.message}
|
|
||||||
|
|
||||||
{this.renderEditedIndicator()}
|
|
||||||
</span>
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const options = Object.assign({}, this.props.options, {
|
const options = Object.assign({}, this.props.options, {
|
||||||
@@ -119,6 +113,7 @@ export default class PostMessageView extends React.Component {
|
|||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<span
|
<span
|
||||||
|
className='post-message__text'
|
||||||
onClick={Utils.handleFormattedTextClick}
|
onClick={Utils.handleFormattedTextClick}
|
||||||
dangerouslySetInnerHTML={{__html: TextFormatting.formatText(this.props.post.message, options)}}
|
dangerouslySetInnerHTML={{__html: TextFormatting.formatText(this.props.post.message, options)}}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -648,17 +648,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
p + p {
|
p + p {
|
||||||
margin: 1em 0;
|
|
||||||
|
|
||||||
&:last-of-type {
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
span {
|
|
||||||
> p:first-child {
|
|
||||||
margin-bottom: 1em;
|
margin-bottom: 1em;
|
||||||
}
|
margin-top: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
ol,
|
ol,
|
||||||
@@ -742,10 +733,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.post--edited {
|
.post--edited {
|
||||||
p {
|
// If the last paragraph of an edited post is a paragraph, make it inline-block so that the (edited) indicator can be on the same line as it
|
||||||
&:last-child {
|
.post-message__text > p:last-child {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.post-edited-indicator {
|
||||||
|
@include opacity(.6);
|
||||||
|
font-size: .87em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1041,10 +1036,6 @@
|
|||||||
|
|
||||||
p + p {
|
p + p {
|
||||||
margin: 1.2em 0 0;
|
margin: 1.2em 0 0;
|
||||||
|
|
||||||
&:last-of-type {
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
@@ -1129,13 +1120,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
span {
|
|
||||||
&.edited {
|
|
||||||
@include opacity(.6);
|
|
||||||
font-size: .87em;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.post-reaction-list {
|
.post-reaction-list {
|
||||||
min-height: 30px;
|
min-height: 30px;
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user