-
Notifications
You must be signed in to change notification settings - Fork 253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add voting slider to comments #1008
Conversation
- Refactor CommentFooter and Buttons from Comment component - Add voting slider to comments
Great work! Working well. In the worst case scenario (a subcomment in small screen) the voting slider will be little bit small: |
This changes font-size of vote value info and updates paddings on small screens to make Voting Slider less cluttered
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesomeness
parseFloat(comment.pending_payout_value) + | ||
parseFloat(comment.total_payout_value) + | ||
parseFloat(comment.curator_payout_value); | ||
const voteRshares = comment.active_votes.reduce((a, b) => a + parseFloat(b.rshares), 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldnt this be voterShares
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They are actually called rshares
so I think voteRshares
is okay-ish name
|
||
&__count { | ||
margin-right: 8px; | ||
color: #99aab5; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missed color constant here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
working well for me as well, lgtm small comments
Fixes #998.
Changes:
Buttons
andCommentFooter
out ofComment
component