Update GridRep

* 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
This commit is contained in:
Justin Edmund 2023-06-30 22:24:04 -07:00
parent a4dbcebf0b
commit 938b17e5e9
2 changed files with 5 additions and 14 deletions

View file

@ -51,7 +51,7 @@
aspect-ratio: 73/153;
display: grid;
grid-column: 1 / 2; /* spans one column */
max-height: 140px;
max-height: 153px;
}
.weapons {

View file

@ -165,20 +165,11 @@ const GridRep = (props: Props) => {
)
}
const linkedAttribution = () => (
<Link href={`/${props.user ? props.user.username : '#'}`}>
const attribution = () => (
<span className={userClass}>
{userImage()}
{props.user ? props.user.username : t('no_user')}
</span>
</Link>
)
const unlinkedAttribution = () => (
<div className={userClass}>
{userImage()}
{props.user ? props.user.username : t('no_user')}
</div>
)
function fullAutoString() {
@ -244,7 +235,7 @@ const GridRep = (props: Props) => {
)}
</div>
<div className={styles.attributed}>
{props.user ? linkedAttribution() : unlinkedAttribution()}
{attribution()}
<time
className={styles.lastUpdated}