Merge pull request #1756 from jsit/fix/list-view-vote-button-width

fix: Fix vote buttons in list view variable width
This commit is contained in:
SleeplessOne1917 2023-07-02 15:28:44 +00:00 committed by GitHub
commit b6513cc56b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -81,6 +81,7 @@
} }
.vote-bar { .vote-bar {
min-width: 5ch;
margin-top: -6.5px; margin-top: -6.5px;
} }

View file

@ -174,7 +174,7 @@ export class VoteButtons extends Component<VoteButtonsProps, VoteButtonsState> {
render() { render() {
return ( return (
<div className="vote-bar pe-0 small text-center"> <div className="vote-bar small text-center">
<button <button
type="button" type="button"
className={`btn-animate btn btn-link p-0 ${ className={`btn-animate btn btn-link p-0 ${
@ -193,7 +193,7 @@ export class VoteButtons extends Component<VoteButtonsProps, VoteButtonsState> {
</button> </button>
{showScores() ? ( {showScores() ? (
<div <div
className="unselectable pointer text-muted px-1 post-score" className="unselectable pointer text-muted post-score"
data-tippy-content={tippy(this.props.counts)} data-tippy-content={tippy(this.props.counts)}
> >
{numToSI(this.props.counts.score)} {numToSI(this.props.counts.score)}