Fix avatar lightbox aspect ratio
This commit is contained in:
parent
9cbbbe0ef0
commit
b3196425af
1 changed files with 5 additions and 4 deletions
|
@ -49,10 +49,11 @@ export function AvatarLightbox({
|
||||||
isGroup={isGroup}
|
isGroup={isGroup}
|
||||||
style={{
|
style={{
|
||||||
fontSize: '16em',
|
fontSize: '16em',
|
||||||
height: '2em',
|
width: 'auto',
|
||||||
maxHeight: 512,
|
minHeight: '64px',
|
||||||
maxWidth: 512,
|
height: '100%',
|
||||||
width: '2em',
|
maxHeight: `min(${512}px, 100%)`,
|
||||||
|
aspectRatio: '1 / 1',
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</Lightbox>
|
</Lightbox>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue