Skip to content

Commit 64ef4e3

Browse files
authored
fix: order of application of theme for gallery images (#2221)
* fix: order of application of theme for gallery images * fix: order of application of theme for gallery images
1 parent 5c6348f commit 64ef4e3

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

package/src/components/Attachment/Gallery.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,13 +151,11 @@ const GalleryWithContext = <
151151
style={[
152152
styles.galleryContainer,
153153
{
154+
flexDirection: invertedDirections ? 'column' : 'row',
154155
height,
155156
width,
156157
},
157158
galleryContainer,
158-
{
159-
flexDirection: invertedDirections ? 'column' : 'row',
160-
},
161159
]}
162160
testID='gallery-container'
163161
>
@@ -365,11 +363,11 @@ const GalleryThumbnail = <
365363
<VideoThumbnail
366364
style={[
367365
borderRadius,
368-
image,
369366
{
370367
height: thumbnail.height - 1,
371368
width: thumbnail.width - 1,
372369
},
370+
image,
373371
]}
374372
thumb_url={thumbnail.thumb_url}
375373
/>
@@ -457,11 +455,11 @@ const GalleryImageThumbnail = <
457455
resizeMode={thumbnail.resizeMode}
458456
style={[
459457
borderRadius,
460-
gallery.image,
461458
{
462459
height: thumbnail.height - 1,
463460
width: thumbnail.width - 1,
464461
},
462+
gallery.image,
465463
]}
466464
uri={thumbnail.url}
467465
/>

0 commit comments

Comments
 (0)