Firstly, thanks to Mark Theunissen for an outstanding module! I seem to have run into a small bug, however. After uploading only a single image to a node, the Galleria that is created has the following usability problems (keep in mind that there is only one image to choose from):

  • A redundant, lone thumbnail is shown below the displayed image
  • The next/previous links are visible
  • Clicking on the displayed image jumps to a nonexistent "next image"

In this situation, clicking on either the next/previous link or on the displayed image results in no image being displayed.

I've attached a simple patch that fixes this issue by removing the displayed image's click action and not displaying the thumbnail list and next/previous links when there is only one image. With the patch applied, single images share the same Galleria structure, styling, and captions as their grouped counterparts, but they no longer mislead users to think that there is more than one image in the Galleria.

CommentFileSizeAuthor
galleria.patch2.47 KBeromba

Comments

Mark Theunissen’s picture

Thanks for all the patches! You caught me while I was on holiday. I'll take a look at them all shortly.

Mark Theunissen’s picture

Assigned: Unassigned » Mark Theunissen
Mark Theunissen’s picture

Status: Needs review » Fixed

Fixed in -dev. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.