]> Untitled Git - lemmy-ui.git/commitdiff
fix: Fix vote buttons in list view variable width
authorJay Sitter <jay@jaysitter.com>
Sun, 2 Jul 2023 15:20:02 +0000 (11:20 -0400)
committerJay Sitter <jay@jaysitter.com>
Sun, 2 Jul 2023 15:20:02 +0000 (11:20 -0400)
src/assets/css/main.css
src/shared/components/common/vote-buttons.tsx

index e5c163b1b540e1d4978c6ce68ed12da7ca036aa1..648e76d301a658d7d4e8a47d209fe00d837e7df7 100644 (file)
@@ -81,6 +81,7 @@
 }
 
 .vote-bar {
+  min-width: 5ch;
   margin-top: -6.5px;
 }
 
index 372a329397c9ecdfc9e1dc5f2993cf2434bc0e73..69df94bfb395d06e12d8b689691c346aca89014a 100644 (file)
@@ -174,7 +174,7 @@ export class VoteButtons extends Component<VoteButtonsProps, VoteButtonsState> {
 
   render() {
     return (
-      <div className="vote-bar pe-0 small text-center">
+      <div className="vote-bar small text-center">
         <button
           type="button"
           className={`btn-animate btn btn-link p-0 ${
@@ -193,7 +193,7 @@ export class VoteButtons extends Component<VoteButtonsProps, VoteButtonsState> {
         </button>
         {showScores() ? (
           <div
-            className="unselectable pointer text-muted px-1 post-score"
+            className="unselectable pointer text-muted post-score"
             data-tippy-content={tippy(this.props.counts)}
           >
             {numToSI(this.props.counts.score)}