Skip to content

Inline and full-window view #139

Answered by igordanchenko
ncovercash asked this question in Q&A
Discussion options

You must be logged in to vote

Hi there! Thank you for bringing up this interesting use case.

I'd use 2 separate Lightbox instances in this case. Does this look like the experience you want to implement?

https://codesandbox.io/p/sandbox/yet-another-react-lightbox-136-jjmq8z?file=%2Fsrc%2FApp.tsx

There is an option to use the same lightbox, but I'm pretty sure there will be visible page content layout shift when the lightbox opens/closes.

https://codesandbox.io/p/sandbox/yet-another-react-lightbox-138-6wpcnj?file=%2Fsrc%2FApp.tsx

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ncovercash
Comment options

Answer selected by ncovercash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #136 on June 10, 2023 15:12.