diff --git a/src/view/com/util/images/AutoSizedImage.tsx b/src/view/com/util/images/AutoSizedImage.tsx index 9abbe2875f..a9bfc1c966 100644 --- a/src/view/com/util/images/AutoSizedImage.tsx +++ b/src/view/com/util/images/AutoSizedImage.tsx @@ -88,7 +88,7 @@ export function ConstrainedImage({ = ({ onLongPress={onLongPress ? () => onLongPress(index) : undefined} style={[ a.flex_1, - a.rounded_sm, a.overflow_hidden, t.atoms.bg_contrast_25, imageStyle, diff --git a/src/view/com/util/images/ImageLayoutGrid.tsx b/src/view/com/util/images/ImageLayoutGrid.tsx index 45da7f076d..fce22c132e 100644 --- a/src/view/com/util/images/ImageLayoutGrid.tsx +++ b/src/view/com/util/images/ImageLayoutGrid.tsx @@ -26,10 +26,21 @@ export function ImageLayoutGrid({style, ...props}: ImageLayoutGridProps) { ? a.gap_sm : a.gap_xs const count = props.images.length - const aspectRatio = count === 2 ? 2 : count === 3 ? 1.5 : 1 + let aspectRatio = 1 + switch (count) { + case 2: + aspectRatio = 2 + break + case 3: + aspectRatio = 2 + break + case 4: + aspectRatio = 1.5 + break + } return ( - + @@ -65,14 +76,14 @@ function ImageLayoutGridInner(props: ImageLayoutGridInnerProps) { case 3: return ( - + - + - + @@ -83,18 +94,18 @@ function ImageLayoutGridInner(props: ImageLayoutGridInnerProps) { return ( <> - + - + - + - +