Skip to content

Commit 3b1058a

Browse files
authored
Merge pull request #88134 from software-mansion-labs/mrejdak/fix-landscape-receipt-thumbnail-dims
2 parents 9cb33cd + efde59a commit 3b1058a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/styles/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4645,7 +4645,9 @@ const staticStyles = (theme: ThemeColors) =>
46454645
height: 'auto',
46464646
},
46474647
expenseViewImageSmall: {
4648+
// aspectRatio is calculated first and then maxWidth/maxHeight clamps the dimensions, thus both have to be specified
46484649
maxWidth: variables.receiptPreviewMaxWidth,
4650+
maxHeight: (variables.receiptPreviewMaxWidth * 9) / 16,
46494651
aspectRatio: 16 / 9,
46504652
height: 'auto',
46514653
},

0 commit comments

Comments
 (0)