From b3196425af9289cd7e5dbb33535f8ca9393bb7a7 Mon Sep 17 00:00:00 2001 From: Jamie Kyle <113370520+jamiebuilds-signal@users.noreply.github.com> Date: Thu, 6 Jun 2024 13:37:05 -0700 Subject: [PATCH] Fix avatar lightbox aspect ratio --- ts/components/AvatarLightbox.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ts/components/AvatarLightbox.tsx b/ts/components/AvatarLightbox.tsx index aa0f74541..72174d136 100644 --- a/ts/components/AvatarLightbox.tsx +++ b/ts/components/AvatarLightbox.tsx @@ -49,10 +49,11 @@ export function AvatarLightbox({ isGroup={isGroup} style={{ fontSize: '16em', - height: '2em', - maxHeight: 512, - maxWidth: 512, - width: '2em', + width: 'auto', + minHeight: '64px', + height: '100%', + maxHeight: `min(${512}px, 100%)`, + aspectRatio: '1 / 1', }} />