1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Use the new gap option

This commit is contained in:
xmflsct
2023-02-11 23:37:17 +01:00
parent b679c0760f
commit 242c75079a
6 changed files with 147 additions and 166 deletions

View File

@ -25,21 +25,15 @@ const AttachmentUnsupported: React.FC<Props> = ({ total, index, sensitiveShown,
<View
style={{
flex: 1,
flexBasis: '50%',
padding: StyleConstants.Spacing.XS / 2,
aspectRatio: aspectRatio({ total, index, ...attachment.meta?.original }),
justifyContent: 'center',
alignItems: 'center',
aspectRatio: aspectRatio({ total, index, ...attachment.meta?.original })
alignItems: 'center'
}}
>
{attachment.blurhash ? (
<GracefullyImage
sources={{ blurhash: attachment.blurhash }}
style={{
position: 'absolute',
width: '100%',
height: '100%'
}}
style={{ position: 'absolute', width: '100%', height: '100%' }}
/>
) : null}
{!sensitiveShown ? (