dimsemenov / photoswipe-dynamic-caption-plugin

A dynamic caption plugin for PhotoSwipe v5. Automatically positions the caption aside or below the image.
MIT License
70 stars 12 forks source link

Option mobileLayoutBreakpoint: 0 is better as the default 600 #5

Open acwolff opened 3 years ago

acwolff commented 3 years ago

I have my doubts about the use of option mobileLayoutBreakpoint. I did test it here, click on the 5th thumbnail.

If I use the default value 600 I see on my PC this:

PC_default

On my iPhone I see this:

iPhone_default

But if I use option mobileLayoutBreakpoint: 0, I get better results, on my PC I see this:

PC_Value_0

And on my iPhone this:

iPhone_value_0

I think the value 0 gives better results as the default value 600, so I propose to change the default to 0 or remove the option.

But I wonder why the image on a PC take 100% of the viewport while on an iPhone there are unused area left and right of the image?

How can I use the full 100% on an iPhone?