Fix avatar lightbox aspect ratio

This commit is contained in:
Jamie Kyle 2024-06-06 13:37:05 -07:00 committed by GitHub
parent 9cbbbe0ef0
commit b3196425af
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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>