trvswgnr / bs5-lightbox

A pure JS lightbox gallery plugin for Bootstrap 5 based on the Modal and Carousel components
https://trvswgnr.github.io/bs5-lightbox/
MIT License
125 stars 28 forks source link

data-size="fullscreen" does not work #32

Open MichaelMorett opened 1 year ago

MichaelMorett commented 1 year ago

This seems simple enough, but controlling the size of the lightbox via data-size does not work. It only uses the default "xl".

Maybe this could be controlled by Javascript, but there is no working example in the docs that show this. All examples show control via data- attributes.

Using v1.8.0.

trvswgnr commented 1 year ago

@MichaelMorett Thanks for bringing this to my attention, I will look into it ASAP.

Zenko commented 10 months ago

It's been a year... has this been fixed?

I would really like to use this script, thanks.

1xn commented 8 months ago

If you download the .js file and host it yourself, instead of loading it from the CDN it's easy to change. On line 37 beginning of the script replace size: 'xl', with size: 'fullscreen' and it works.