mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-25 22:01:13 +00:00
Merge pull request #1173 from alectrocute/collapse-expand-align-comment
Left-align comment collapse/expand button
This commit is contained in:
commit
b6841b49ae
1 changed files with 8 additions and 12 deletions
|
@ -234,6 +234,14 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> {
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
<div className="d-flex flex-wrap align-items-center text-muted small">
|
<div className="d-flex flex-wrap align-items-center text-muted small">
|
||||||
|
<button
|
||||||
|
className="btn btn-sm text-muted mr-2"
|
||||||
|
onClick={linkEvent(this, this.handleCommentCollapse)}
|
||||||
|
aria-label={this.expandText}
|
||||||
|
data-tippy-content={this.expandText}
|
||||||
|
>
|
||||||
|
<Icon icon={`${this.state.collapsed ? "plus" : "minus"}-square`} classes="icon-inline" />
|
||||||
|
</button>
|
||||||
<span className="mr-2">
|
<span className="mr-2">
|
||||||
<PersonListing person={cv.creator} />
|
<PersonListing person={cv.creator} />
|
||||||
</span>
|
</span>
|
||||||
|
@ -270,18 +278,6 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> {
|
||||||
</Link>
|
</Link>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
<button
|
|
||||||
className="btn btn-sm text-muted"
|
|
||||||
onClick={linkEvent(this, this.handleCommentCollapse)}
|
|
||||||
aria-label={this.expandText}
|
|
||||||
data-tippy-content={this.expandText}
|
|
||||||
>
|
|
||||||
{this.state.collapsed ? (
|
|
||||||
<Icon icon="plus-square" classes="icon-inline" />
|
|
||||||
) : (
|
|
||||||
<Icon icon="minus-square" classes="icon-inline" />
|
|
||||||
)}
|
|
||||||
</button>
|
|
||||||
{this.linkBtn(true)}
|
{this.linkBtn(true)}
|
||||||
{cv.comment.language_id !== 0 && (
|
{cv.comment.language_id !== 0 && (
|
||||||
<span className="badge d-none d-sm-inline mr-2">
|
<span className="badge d-none d-sm-inline mr-2">
|
||||||
|
|
Loading…
Reference in a new issue