From a72cc6807ed7da8238e0e0e9ac80fbd694ecd793 Mon Sep 17 00:00:00 2001 From: Jay Sitter Date: Sun, 2 Jul 2023 11:20:02 -0400 Subject: [PATCH] fix: Fix vote buttons in list view variable width --- src/assets/css/main.css | 1 + src/shared/components/common/vote-buttons.tsx | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/assets/css/main.css b/src/assets/css/main.css index e5c163b1..648e76d3 100644 --- a/src/assets/css/main.css +++ b/src/assets/css/main.css @@ -81,6 +81,7 @@ } .vote-bar { + min-width: 5ch; margin-top: -6.5px; } diff --git a/src/shared/components/common/vote-buttons.tsx b/src/shared/components/common/vote-buttons.tsx index 372a3293..69df94bf 100644 --- a/src/shared/components/common/vote-buttons.tsx +++ b/src/shared/components/common/vote-buttons.tsx @@ -174,7 +174,7 @@ export class VoteButtons extends Component { render() { return ( -
+
{showScores() ? (
{numToSI(this.props.counts.score)}