fix(FavePlayersPage): add objectFit: 'cover' to avatar image
Added `objectFit: 'cover'` to ensure avatars are displayed consistently.
This commit is contained in:
parent
3b87230173
commit
f5f68496c1
@ -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"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user