From 9ebf64a11934ab325a56979160d9519f33ddcb57 Mon Sep 17 00:00:00 2001 From: Larsen Vallecillo Date: Wed, 11 Oct 2023 14:56:06 -0500 Subject: [PATCH] Fix cover height (#54) This PR fixes the height of Switch games that had been too large compared to the covers of other platforms. --- README.md | 4 +--- src/components/account/OAuthAccountsCard.jsx | 24 +++++-------------- .../leaderboard/GameLeaderboardCard.jsx | 1 + 3 files changed, 8 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 10fdaf2..72677f7 100755 --- a/README.md +++ b/README.md @@ -65,9 +65,7 @@ You can set yourself as an administrator by chaing the "role" column to "admin" | DATABASE_URL | Connection String | mysql://USER:PASSWORD@127.0.0.1:3306/DATABASE | | IRON_SECRET | Secret for Iron to encrypt the cookie | stringwithatleast64chars | | DISCORD_CLIENT_ID | Discord Client ID | | -| DISCORD_CLIENT_SECRET | Discord Client Secret | | -| TWITTER_API_KEY | Twitter API Key | | -| TWITTER_API_SECRET_KEY | Twitter API Secret Key | | +| DISCORD_CLIENT_SECRET | Discord Client Secret | | | WEBPACK_ANALYZE | Runs Webpack Analyzer on start | true | | NEXT_PUBLIC_LOGGING_LEVEL | Logging Level | TRACE, DEBUG, INFO, WARNING, ERROR or CRITICAL | | NEXT_PUBLIC_STAGING | If the instance is a staging instance where data may be deleted | true | diff --git a/src/components/account/OAuthAccountsCard.jsx b/src/components/account/OAuthAccountsCard.jsx index cc8ac21..c941c62 100755 --- a/src/components/account/OAuthAccountsCard.jsx +++ b/src/components/account/OAuthAccountsCard.jsx @@ -10,31 +10,19 @@ function OAuthAccountsCard({ accounts }) { const getProvider = ({ created_at, provider_id }) => ( - {provider_id === 'discord' ? ( - <> - - Discord - - ) : ( - <> - - {provider_id} (Unsupported) - - )}{' '} + <> + + Discord + - Linked on {dayjs(created_at).format(DATE_FORMAT)} - {accounts.length === 1 && ( - <> -
- You cannot unlink your only account. - - )} + {accounts.length}
); return ( - Linked accounts + Linked Discord Account {accounts.map((account) => getProvider(account))} {/*
*/} diff --git a/src/components/leaderboard/GameLeaderboardCard.jsx b/src/components/leaderboard/GameLeaderboardCard.jsx index 3bf473e..09c4f21 100755 --- a/src/components/leaderboard/GameLeaderboardCard.jsx +++ b/src/components/leaderboard/GameLeaderboardCard.jsx @@ -14,6 +14,7 @@ function GameLeaderboardCard({ game, position }) { {game.name