Separate final comment row + add classes (#1982)

Co-authored-by: djvs <djvs@users.noreply.github.com>
This commit is contained in:
djvs 2023-07-25 14:07:17 -04:00 committed by Dessalines
parent 17c063df0d
commit 764bdd4ac8

View file

@ -384,7 +384,8 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> {
/> />
)} )}
{!this.state.showEdit && !this.state.collapsed && ( {!this.state.showEdit && !this.state.collapsed && (
<div> <>
<div className="comment-content">
{this.state.viewSource ? ( {this.state.viewSource ? (
<pre>{this.commentUnlessRemoved}</pre> <pre>{this.commentUnlessRemoved}</pre>
) : ( ) : (
@ -397,7 +398,8 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> {
} }
/> />
)} )}
<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>