Skip to content
This repository was archived by the owner on Jan 19, 2023. It is now read-only.

Commit 3df0567

Browse files
committed
Fix mobile (safari) visual bug
The edges of the lightbox were getting cut off due to the react-modal style settings. For some reason this didn't come up on desktop browsers.
1 parent 7b78a61 commit 3df0567

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/react-image-lightbox.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -855,6 +855,10 @@ class ReactImageLightbox extends Component {
855855
backgroundColor: 'transparent',
856856
border: 'none',
857857
borderRadius: 0,
858+
top: 0,
859+
left: 0,
860+
right: 0,
861+
bottom: 0,
858862
},
859863
};
860864

0 commit comments

Comments
 (0)