From 938b17e5e9f5b7c210acdf33fb35bf0570263137 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Fri, 30 Jun 2023 22:24:04 -0700 Subject: [PATCH] Update GridRep MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Remove link to user's profile—it was very distracting * Increase mainhand max height so it doesn't appear too small when reps are larger --- components/GridRep/index.module.scss | 2 +- components/GridRep/index.tsx | 17 ++++------------- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/components/GridRep/index.module.scss b/components/GridRep/index.module.scss index e1dd0dd8..6a3d490f 100644 --- a/components/GridRep/index.module.scss +++ b/components/GridRep/index.module.scss @@ -51,7 +51,7 @@ aspect-ratio: 73/153; display: grid; grid-column: 1 / 2; /* spans one column */ - max-height: 140px; + max-height: 153px; } .weapons { diff --git a/components/GridRep/index.tsx b/components/GridRep/index.tsx index 844913e0..11220f95 100644 --- a/components/GridRep/index.tsx +++ b/components/GridRep/index.tsx @@ -165,20 +165,11 @@ const GridRep = (props: Props) => { ) } - const linkedAttribution = () => ( - - - {userImage()} - {props.user ? props.user.username : t('no_user')} - - - ) - - const unlinkedAttribution = () => ( -
+ const attribution = () => ( + {userImage()} {props.user ? props.user.username : t('no_user')} -
+ ) function fullAutoString() { @@ -244,7 +235,7 @@ const GridRep = (props: Props) => { )}
- {props.user ? linkedAttribution() : unlinkedAttribution()} + {attribution()}