Constrain tournament logo width

This commit is contained in:
Erik Vroon
2023-02-01 17:35:28 +01:00
parent 8480d73af5
commit cfee73688c

View File

@@ -14,7 +14,12 @@ function TournamentLogo({ tournamentDataFull }: { tournamentDataFull: Tournament
return <Skeleton height={150} radius="xl" mb="xl" />;
}
return tournamentDataFull.logo_path ? (
<Image radius="lg" src={`${getBaseApiUrl()}/static/${tournamentDataFull.logo_path}`} />
<Image
radius="lg"
mt={12}
src={`${getBaseApiUrl()}/static/${tournamentDataFull.logo_path}`}
style={{ maxWidth: '400px' }}
/>
) : null;
}