From: Jay Sitter Date: Thu, 22 Jun 2023 18:02:15 +0000 (-0400) Subject: fix: Revert to old mobile vote style X-Git-Url: http://these/git/%22https:/image.com/static/readmes/README.es.md?a=commitdiff_plain;h=443c128e05e21b03364036e34300f993c5ba8eaa;p=lemmy-ui.git fix: Revert to old mobile vote style --- diff --git a/src/shared/components/common/vote-buttons.tsx b/src/shared/components/common/vote-buttons.tsx index 2bbddad..dce46f5 100644 --- a/src/shared/components/common/vote-buttons.tsx +++ b/src/shared/components/common/vote-buttons.tsx @@ -1,5 +1,6 @@ import { showScores } from "@utils/app"; import { numToSI } from "@utils/helpers"; +import classNames from "classnames"; import { Component, linkEvent } from "inferno"; import { CommentAggregates, PostAggregates } from "lemmy-js-client"; import { I18NextService } from "../../services"; @@ -60,68 +61,67 @@ export class VoteButtonsCompact extends Component< render() { return ( - <> -
+
+ + {this.props.enableDownvotes && ( - - {numToSI(this.props.counts.score)} - - {this.props.enableDownvotes && ( - - )} -
- + )} +
); } } -export class VoteButtons extends Component { - state: VotesState = { +export class VoteButtons extends Component { + state: VoteButtonsState = { upvoteLoading: false, downvoteLoading: false, };