mirror of https://git.lenooby09.tech/LeNooby09/social-app.git
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix clipping issue with 2 image grid (#5744)

* don't set aspect ratio for 2 images

* let -> const

authored by samuel.fm and committed by

GitHub e652b2d7 2b53ef25

+1 -12
+1 -12
src/view/com/util/images/ImageLayoutGrid.tsx
··· 24 24 : a.gap_2xs 25 25 : a.gap_xs 26 26 const count = props.images.length 27 - let aspectRatio 28 - switch (count) { 29 - case 2: 30 - aspectRatio = 2 31 - break 32 - case 3: 33 - aspectRatio = 2 34 - break 35 - case 4: 36 - aspectRatio = undefined 37 - break 38 - } 27 + const aspectRatio = count === 3 ? 2 : undefined 39 28 return ( 40 29 <View style={style}> 41 30 <View style={[gap, a.rounded_md, a.overflow_hidden, {aspectRatio}]}>