diff options
author | crupest <crupest@outlook.com> | 2021-05-06 17:03:19 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-05-06 17:03:19 +0800 |
commit | a2e1f724bc5a6fc539da797d08fae4136e7b8d6a (patch) | |
tree | 29d594ac93b9ca357148b807e69f6441a4178803 /FrontEnd/src | |
parent | d90594e8cedb84837a8d69a7c246c5697f76c60f (diff) | |
download | timeline-a2e1f724bc5a6fc539da797d08fae4136e7b8d6a.tar.gz timeline-a2e1f724bc5a6fc539da797d08fae4136e7b8d6a.tar.bz2 timeline-a2e1f724bc5a6fc539da797d08fae4136e7b8d6a.zip |
...
Diffstat (limited to 'FrontEnd/src')
-rw-r--r-- | FrontEnd/src/app/views/timeline-common/TimelineMember.tsx | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/FrontEnd/src/app/views/timeline-common/TimelineMember.tsx b/FrontEnd/src/app/views/timeline-common/TimelineMember.tsx index 51512f15..299d6a53 100644 --- a/FrontEnd/src/app/views/timeline-common/TimelineMember.tsx +++ b/FrontEnd/src/app/views/timeline-common/TimelineMember.tsx @@ -31,15 +31,16 @@ const TimelineMemberItem: React.FC<{ </Row> </Col> {onAction ? ( - <Button - className="align-self-center" - variant={add ? "success" : "danger"} - onClick={() => { - onAction(user.username); - }} - > - {t(`timeline.member.${add ? "add" : "remove"}`)} - </Button> + <Col xs="auto"> + <Button + variant={add ? "success" : "danger"} + onClick={() => { + onAction(user.username); + }} + > + {t(`timeline.member.${add ? "add" : "remove"}`)} + </Button> + </Col> ) : null} </Row> </ListGroup.Item> |