mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-23 16:30:30 +00:00
Better offsets
This commit is contained in:
parent
0fc1551dbc
commit
e97feea785
3 changed files with 6 additions and 2 deletions
|
@ -61,7 +61,7 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> {
|
|||
let node = this.props.node;
|
||||
return (
|
||||
<div className={`comment ${node.comment.parent_id && !this.props.noIndent ? 'ml-4' : ''}`}>
|
||||
<div className={`mr-1 float-left small text-center ${this.props.viewOnly && 'no-click'}`}>
|
||||
<div className={`vote-bar mr-1 float-left small text-center ${this.props.viewOnly && 'no-click'}`}>
|
||||
<div className={`pointer ${node.comment.my_vote == 1 ? 'text-info' : 'text-muted'}`} onClick={linkEvent(node, this.handleCommentLike)}>
|
||||
<svg class="pointer icon upvote"><use xlinkHref="#icon-arrow-up"></use></svg>
|
||||
</div>
|
||||
|
|
|
@ -59,7 +59,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
|||
let post = this.props.post;
|
||||
return (
|
||||
<div class="listing">
|
||||
<div className={`mr-1 float-left small text-center ${this.props.viewOnly && 'no-click'}`}>
|
||||
<div className={`vote-bar mr-1 float-left small text-center ${this.props.viewOnly && 'no-click'}`}>
|
||||
<div className={`pointer ${post.my_vote == 1 ? 'text-info' : 'text-muted'}`} onClick={linkEvent(this, this.handlePostLike)}>
|
||||
<svg class="pointer icon upvote"><use xlinkHref="#icon-arrow-up"></use></svg>
|
||||
</div>
|
||||
|
|
|
@ -67,6 +67,10 @@ body, .text-white, .navbar-brand, .badge-light, .btn-secondary {
|
|||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.vote-bar {
|
||||
margin-top: -3px;
|
||||
}
|
||||
|
||||
.icon {
|
||||
display: inline-flex;
|
||||
width: 1em;
|
||||
|
|
Loading…
Reference in a new issue