Thanks a lot Support,
For the very quick reply.
I had a look at your support forum and found these two links related to this problem:
https://www.dfactory.eu/support/topic/feature-request-prettyphoto-allow_expand/
https://www.dfactory.eu/support/topic/responsive-lightbox-not-displaying-properly-on-iphone/
Where the second link provides CSS code, which worked for me after I changed the .pp_details to a width of 100% as follows:
/* prettyPhoto styling for small screens */
/* Mobile Portrait Size to Mobile Landscape Size (devices and browsers) */
@media only screen and (max-width: 479px) {
.pp_pic_holder.pp_default { width: 100%!important; left: 0!important; overflow: hidden; }
div.pp_default .pp_content_container .pp_left { padding-left: 0!important; }
div.pp_default .pp_content_container .pp_right { padding-right: 0!important; }
.pp_content { width: 100%!important; height: auto!important; }
.pp_fade { width: 100%!important; height: 100%!important; }
a.pp_expand, a.pp_contract, .pp_hoverContainer, .pp_gallery, .pp_top, .pp_bottom { display: none!important; }
#pp_full_res img { width: 100%!important; height: auto!important; }
.pp_details { width: 100%!important; padding-left: 3%; padding-right: 4%; padding-top: 10px; padding-bottom: 10px; background-color: #fff; margin-top: -2px!important; }
}
I could also suggest to include the below CSS within the brackets above in order to improve the readability on small devices and to break the top title (div.ppt) when needed:
div.ppt{width:100%!important;}
div.pp_default .pp_description {margin: 0px 20px 5px 0!important;font-size: 17px!important;font-weight:100!important;line-height:1.3em!important;}
div.pp_default .pp_nav {margin-top:5px!important;}
a.pp_close {right:5px!important;top:5px!important;}
Please consider including the above CSS in your plugin because there are still millions of people using small devices and they will definitely have a bad experience of prettyPhoto without it and I guess a lot of people using your plugin don’t even realize those people are having a bad UI experience.
Cheers