sachinchoolur / lightGallery

A customizable, modular, responsive, lightbox gallery plugin.
https://www.lightgalleryjs.com/
Other
6.42k stars 1.28k forks source link

No close and download button on mobile devices #1168

Closed MaksTrader closed 2 years ago

MaksTrader commented 2 years ago

Description

Describe the issue that you're seeing.

Steps to reproduce

Clear steps describing how to reproduce the issue. Please please please link to a demo project if possible, this makes your issue much easier to diagnose (seriously).

Expected result

What should happen?

Actual result

What happened.

Additional context

MaksTrader commented 2 years ago

Hi. Please help. The close and download button is missing on mobile devices. I add Screenshot_1 ed

but it not working for me.

i use \dynamikaweb\lightgallery\LightGallery::widget([ in Yii2.

How can I show the close button in the upper right corner?

Thank you.

MaksTrader commented 2 years ago

Yes. I use /**

sachinchoolur commented 2 years ago

This works fine for me. could be the issue with the widget that you are using. It would be helpful to debug the issue if you could provide a demo URL

MaksTrader commented 2 years ago

Greetings. Thank you for your reply. Here's a working site https://worldtokenwall.com. Please? open the image in the upper left corner. On mobile.

MaksTrader commented 2 years ago

You are right, it looks like the widget does not use these optio Screenshot_8 ns

sachinchoolur commented 2 years ago

Yes, I think you should report this issue to them. Even if I provide a workaround that could break in the upcoming versions.

let me know if you need any other assistance from my side

MaksTrader commented 2 years ago

Thank you. Your advice was very helpful.

Made an additional js file like this,

$("map-conteiner").lightGallery({ mobileSettings: [{ controls: true, showCloseIcon: true, download: false }] })

added it to Widget Assets

Screenshot_9

and everything worked.

The question can be closed.