Help with horizontal scroll for custom toolbar and slideshow layout #162
-
Hi! Just want to start off by saying thank you for creating this and for all the great resources and documentation! I've been able to do so much customization, but I'm stuck on a couple things.
Here are screenshots for clarity: Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi there! I'm glad to hear you are enjoying this library so far.
I'm not sure that discussion is relevant to your case. Let me explain. In the case when your page content is larger than the viewport height, some browsers (e.g. on Windows) display vertical scrollbar. So when the lightbox opens, that vertical scrollbar remains visible but it makes no sense since the lightbox takes over fullscreen user experience. So when the lightbox opens, it hides that scrollbar by setting document But in this case you probably want to limit the horizontal dimension of your toolbar and set overflow to https://codesandbox.io/p/sandbox/yet-another-react-lightbox-162-98pclr
To achieve this effect, I'd wrap carousel in another https://codesandbox.io/p/sandbox/yet-another-react-lightbox-162-98pclr I hope this helps. |
Beta Was this translation helpful? Give feedback.
Hi there!
I'm glad to hear you are enjoying this library so far.
I'm not sure that discussion is relevant to your case. Let me explain. In the case when your page content is larger than the viewport height, some browsers (e.g. on Windows) display vertical scrollbar. So when…