mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-23 03:11:25 +00:00
Separate final comment row + add classes (#1982)
Co-authored-by: djvs <djvs@users.noreply.github.com>
This commit is contained in:
parent
6331323554
commit
d42aabb3ca
1 changed files with 17 additions and 15 deletions
|
@ -384,20 +384,22 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> {
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{!this.state.showEdit && !this.state.collapsed && (
|
{!this.state.showEdit && !this.state.collapsed && (
|
||||||
<div>
|
<>
|
||||||
{this.state.viewSource ? (
|
<div className="comment-content">
|
||||||
<pre>{this.commentUnlessRemoved}</pre>
|
{this.state.viewSource ? (
|
||||||
) : (
|
<pre>{this.commentUnlessRemoved}</pre>
|
||||||
<div
|
) : (
|
||||||
className="md-div"
|
<div
|
||||||
dangerouslySetInnerHTML={
|
className="md-div"
|
||||||
this.props.hideImages
|
dangerouslySetInnerHTML={
|
||||||
? mdToHtmlNoImages(this.commentUnlessRemoved)
|
this.props.hideImages
|
||||||
: mdToHtml(this.commentUnlessRemoved)
|
? mdToHtmlNoImages(this.commentUnlessRemoved)
|
||||||
}
|
: mdToHtml(this.commentUnlessRemoved)
|
||||||
/>
|
}
|
||||||
)}
|
/>
|
||||||
<div className="d-flex justify-content-between justify-content-lg-start flex-wrap text-muted fw-bold">
|
)}
|
||||||
|
</div>
|
||||||
|
<div className="comment-bottom-btns d-flex justify-content-between justify-content-lg-start flex-wrap text-muted fw-bold">
|
||||||
{this.props.showContext && this.getLinkButton()}
|
{this.props.showContext && this.getLinkButton()}
|
||||||
{this.props.markable && (
|
{this.props.markable && (
|
||||||
<button
|
<button
|
||||||
|
@ -915,7 +917,7 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> {
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
{/* end of button group */}
|
{/* end of button group */}
|
||||||
</div>
|
</>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
|
|
Loading…
Reference in a new issue