我正在使用comment
软件包https://react.semantic-ui.com/views/comment/中的semantic-ui-react
。下面的代码
<Comment.Group>
<Comment>
<Comment.Avatar as='a' src='https://react.semantic-ui.com/images/avatar/small/stevie.jpg' />
<Comment.Content>
<Comment.Author>Stevie Feliciano</Comment.Author>
<Comment.Metadata>
<div>2 days ago</div>
<div>
<Icon name='star' />5 Faves
</div>
</Comment.Metadata>
<Comment.Text>
Hey guys, I hope this example comment is helping you read this
documentation.
</Comment.Text>
</Comment.Content>
</Comment>
</Comment.Group>
但是我想看到注释以相反的顺序显示,在右边是头像,在右边是用户名,在左边是注释。
我尝试将以下CSS添加到<Comment>
.reverse {
display: flex;
flex-direction: row-reverse;
}