Skip to content

Commit

Permalink
reapply default image size
Browse files Browse the repository at this point in the history
  • Loading branch information
tienifr committed Mar 8, 2024
1 parent c447008 commit b81f519
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Lightbox/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ function Lightbox({isAuthTokenRequired = false, uri, onScaleChanged: onScaleChan
>
<Image
source={{uri}}
style={[contentSize ?? styles.opacity0]}
style={[contentSize ?? styles.invisibleImage]}
isAuthTokenRequired={isAuthTokenRequired}
onError={onError}
onLoad={updateContentSize}
Expand All @@ -234,7 +234,7 @@ function Lightbox({isAuthTokenRequired = false, uri, onScaleChanged: onScaleChan
<Image
source={{uri}}
resizeMode="contain"
style={[fallbackSize ?? styles.opacity0]}
style={[fallbackSize ?? styles.invisibleImage]}
isAuthTokenRequired={isAuthTokenRequired}
onLoad={updateContentSize}
onLoadEnd={() => setFallbackImageLoaded(true)}
Expand Down
6 changes: 6 additions & 0 deletions src/styles/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3427,6 +3427,12 @@ const styles = (theme: ThemeColors) =>
zIndex: 1000,
},

invisibleImage: {
opacity: 0,
width: 200,
height: 200,
},

reportDropOverlay: {
backgroundColor: theme.dropUIBG,
zIndex: 2,
Expand Down

0 comments on commit b81f519

Please sign in to comment.