RolandTi / collections

Collections is a theme for Zenphoto CMS. Responsive layout and pictures. Dark and light alternative.
GNU General Public License v3.0
11 stars 2 forks source link

Horizontal thumbnails aren't centered #4

Closed stalkerGH closed 1 year ago

stalkerGH commented 1 year ago

What is going on: Horizontally oriented images are displayed properly in gallery but they thumbnails not. Thumbnails are not centered; sometimes I see their left side and the right side is hidden, sometimes the opposite. Alignment top/bottom is good. See attached screenshots. Expected behaviour: Center the thumbnail in such way that the center of every horizontal image is the center point of its square thumbnail.

ZenPhoto 1.6 Collections 1.1

Screenshot_20230212_170313

Screenshot_20230212_113119

RolandTi commented 1 year ago

Hello, thanks for your remark. printCustomAlbumThumbImage fonction needs to be edited in album.php and gallery.php. Should take a minute but I need to take time to read the zenphoto doc. So maybe next week-end I'gonna to fix it. Thank you again !

stalkerGH commented 1 year ago

I found description of this function here: https://docs.zenphoto.org/1.5.x/function-printCustomAlbumThumbImage.html but don't know how to use this knowledge :) I can't bound it with default values in theme's options in ZP admin panel so I'll wait for your free time...

RolandTi commented 1 year ago

Ok I've playing around with the function without success as you can see on my website. I'm going to vacation today, I'll try to ask help on zenphoto forum next week.

Capture d’écran 2023-02-14 101210

RolandTi commented 1 year ago

I asked for help here : https://forum.zenphoto.org/discussion/1411089/center-thumbnail/p1?new=1

RolandTi commented 1 year ago

Hello Stalker ! Thumbs have been fixed ! https://github.com/RolandTi/collections/releases/tag/v.1.2

stalkerGH commented 1 year ago

Thank you, it's working as expected now :)