fix(FavePlayersPage): add objectFit: 'cover' to avatar image

Added `objectFit: 'cover'` to ensure avatars are displayed consistently.
This commit is contained in:
kyuuseiryuu 2026-02-11 16:05:32 +09:00
parent 3b87230173
commit f5f68496c1

View File

@ -50,7 +50,9 @@ export function FavePlayersPage() {
style={{ width: 240 }} style={{ width: 240 }}
> >
<Flex gap={12}> <Flex gap={12}>
{e.avatar?.includes('noavatar') ? <Avatar size={64} shape="square">{e.name}</Avatar> : <Image width={64} src={e.avatar} />} {e.avatar?.includes('noavatar')
? <Avatar size={64} shape="square">{e.name}</Avatar>
: <Image width={64} src={e.avatar} style={{ objectFit: 'cover' }} />}
<Flex <Flex
vertical vertical
justify="center" justify="center"