From efde59ab5ff50299cb87f15aa2995267b83fa364 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Rejdak?= Date: Thu, 16 Apr 2026 18:19:21 +0200 Subject: [PATCH] fix-aspect-ratio-not-preserved --- src/styles/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/styles/index.ts b/src/styles/index.ts index 9a29b155de4a..d2278c19e0dc 100644 --- a/src/styles/index.ts +++ b/src/styles/index.ts @@ -4631,7 +4631,9 @@ const staticStyles = (theme: ThemeColors) => height: 'auto', }, expenseViewImageSmall: { + // aspectRatio is calculated first and then maxWidth/maxHeight clamps the dimensions, thus both have to be specified maxWidth: variables.receiptPreviewMaxWidth, + maxHeight: (variables.receiptPreviewMaxWidth * 9) / 16, aspectRatio: 16 / 9, height: 'auto', },