diff options
author | Dessalines <tyhou13@gmx.com> | 2020-03-24 14:41:46 -0400 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2020-03-24 14:41:46 -0400 |
commit | 83c7d82fce4aa42a8aace0b09603a20c28982d88 (patch) | |
tree | efb757f513296898aabf4abd0365be2996848db9 | |
parent | ac6dc65342319bde26ef408352de19f937500059 (diff) |
Changing post voting arrows.
-rw-r--r-- | ui/src/components/post-listing.tsx | 8 | ||||
-rw-r--r-- | ui/src/components/symbols.tsx | 6 |
2 files changed, 10 insertions, 4 deletions
diff --git a/ui/src/components/post-listing.tsx b/ui/src/components/post-listing.tsx index edb858dd..ff863dcb 100644 --- a/ui/src/components/post-listing.tsx +++ b/ui/src/components/post-listing.tsx @@ -250,14 +250,14 @@ export class PostListing extends Component<PostListingProps, PostListingState> { <div class="row"> <div className={`vote-bar col-1 pr-0 small text-center`}> <button - className={`btn-animate btn btn-link btn-lg p-0 ${ + className={`btn-animate btn btn-link p-0 ${ this.state.my_vote == 1 ? 'text-info' : 'text-muted' }`} onClick={linkEvent(this, this.handlePostLike)} data-tippy-content={i18n.t('upvote')} > <svg class="icon upvote"> - <use xlinkHref="#icon-arrow-up"></use> + <use xlinkHref="#icon-arrow-up1"></use> </svg> </button> <div @@ -268,14 +268,14 @@ export class PostListing extends Component<PostListingProps, PostListingState> { </div> {WebSocketService.Instance.site.enable_downvotes && ( <button - className={`btn-animate btn btn-link btn-lg p-0 ${ + className={`btn-animate btn btn-link p-0 ${ this.state.my_vote == -1 ? 'text-danger' : 'text-muted' }`} onClick={linkEvent(this, this.handlePostDisLike)} data-tippy-content={i18n.t('downvote')} > <svg class="icon downvote"> - <use xlinkHref="#icon-arrow-down"></use> + <use xlinkHref="#icon-arrow-down1"></use> </svg> </button> )} diff --git a/ui/src/components/symbols.tsx b/ui/src/components/symbols.tsx index 1220413c..16deec3e 100644 --- a/ui/src/components/symbols.tsx +++ b/ui/src/components/symbols.tsx @@ -97,6 +97,12 @@ export class Symbols extends Component<any, any> { <symbol id="icon-arrow-up" viewBox="0 0 24 24"> <path d="M5.707 12.707l5.293-5.293v11.586c0 0.552 0.448 1 1 1s1-0.448 1-1v-11.586l5.293 5.293c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414l-7-7c-0.092-0.092-0.202-0.166-0.324-0.217s-0.253-0.076-0.383-0.076c-0.256 0-0.512 0.098-0.707 0.293l-7 7c-0.391 0.391-0.391 1.024 0 1.414s1.024 0.391 1.414 0z"></path> </symbol> + <symbol id="icon-arrow-up1" viewBox="0 0 26 28"> + <path d="M25.172 15.172c0 0.531-0.219 1.031-0.578 1.406l-1.172 1.172c-0.375 0.375-0.891 0.594-1.422 0.594s-1.047-0.219-1.406-0.594l-4.594-4.578v11c0 1.125-0.938 1.828-2 1.828h-2c-1.062 0-2-0.703-2-1.828v-11l-4.594 4.578c-0.359 0.375-0.875 0.594-1.406 0.594s-1.047-0.219-1.406-0.594l-1.172-1.172c-0.375-0.375-0.594-0.875-0.594-1.406s0.219-1.047 0.594-1.422l10.172-10.172c0.359-0.375 0.875-0.578 1.406-0.578s1.047 0.203 1.422 0.578l10.172 10.172c0.359 0.375 0.578 0.891 0.578 1.422z"></path> + </symbol> + <symbol id="icon-arrow-down1" viewBox="0 0 26 28"> + <path d="M25.172 13c0 0.531-0.219 1.047-0.578 1.406l-10.172 10.187c-0.375 0.359-0.891 0.578-1.422 0.578s-1.047-0.219-1.406-0.578l-10.172-10.187c-0.375-0.359-0.594-0.875-0.594-1.406s0.219-1.047 0.594-1.422l1.156-1.172c0.375-0.359 0.891-0.578 1.422-0.578s1.047 0.219 1.406 0.578l4.594 4.594v-11c0-1.094 0.906-2 2-2h2c1.094 0 2 0.906 2 2v11l4.594-4.594c0.359-0.359 0.875-0.578 1.406-0.578s1.047 0.219 1.422 0.578l1.172 1.172c0.359 0.375 0.578 0.891 0.578 1.422z"></path> + </symbol> <symbol id="icon-mail" viewBox="0 0 24 24"> <path d="M3 7.921l8.427 5.899c0.34 0.235 0.795 0.246 1.147 0l8.426-5.899v10.079c0 0.272-0.11 0.521-0.295 0.705s-0.433 0.295-0.705 0.295h-16c-0.272 0-0.521-0.11-0.705-0.295s-0.295-0.433-0.295-0.705zM1 5.983c0 0.010 0 0.020 0 0.030v11.987c0 0.828 0.34 1.579 0.88 2.12s1.292 0.88 2.12 0.88h16c0.828 0 1.579-0.34 2.12-0.88s0.88-1.292 0.88-2.12v-11.988c0-0.010 0-0.020 0-0.030-0.005-0.821-0.343-1.565-0.88-2.102-0.541-0.54-1.292-0.88-2.12-0.88h-16c-0.828 0-1.579 0.34-2.12 0.88-0.537 0.537-0.875 1.281-0.88 2.103zM20.894 5.554l-8.894 6.225-8.894-6.225c0.048-0.096 0.112-0.183 0.188-0.259 0.185-0.185 0.434-0.295 0.706-0.295h16c0.272 0 0.521 0.11 0.705 0.295 0.076 0.076 0.14 0.164 0.188 0.259z"></path> </symbol> |