We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hey, just wondering if anyone has come across the issue with the lightbox image not being centered?
The text was updated successfully, but these errors were encountered:
Same with mine, any idea?
Sorry, something went wrong.
same with my case, does anyone solve this?
Hi, i was solved it.
I was passing custom style in props of Carousel component with below code
const customStyles = { view: () => ({ // none of react-images styles are passed to <View /> position: 'relative', '& > img': { position: 'relative', margin: '0 auto' }, }) }; .......... <div className={'px-20'}> <Gallery photos={photos} onClick={openLightbox} /> <ModalGateway> {viewerIsOpen ? ( <Modal onClose={closeLightbox}> <Carousel currentIndex={currentImage} styles={customStyles} views={photos.map(x => ({ ...x, srcset: x.srcSet, caption: x.title }))} /> </Modal> ) : null} </ModalGateway> </div>
No branches or pull requests
Hey, just wondering if anyone has come across the issue with the lightbox image not being centered?
The text was updated successfully, but these errors were encountered: