kaermorchen / ember-photoswipe

An Ember addon for using Photoswipe in Ember applications.
https://kaermorchen.github.io/ember-photoswipe/
MIT License
19 stars 12 forks source link

Title not showing in the image caption #30

Closed danielreis00 closed 3 years ago

danielreis00 commented 3 years ago

Hello,

Not sure if I'm doing something wrong, if ember-photoswipe doesn't support titles or if is a real issue but when passing items with titles it simply doesn't show on the bottom.

This is how i set my images:

  /**
   * List of image objects to feed to photoswipe.
   * @type {Object[]}
   */
  photoSwipeImages: computedProps(
    'pictures',
    pictures => pictures.map(picture => ({
      src: picture.image.url,
      w: picture.image.width,
      h: picture.image.height,
      title: 'hello world',
    })),
  ),

Here where it is passed to the ember-photoswipe:

{{#photo-swipe
  items=photoSwipeImages
  history=false
  shareEl=false
  options=(hash closeOnScroll=false)
  as |photoswipe|
}}

And the result is this:

Screenshot 2021-07-26 at 17 04 22

Inspecting the html we can see that where it should be it's actually empty Screenshot 2021-07-26 at 17 05 50

Thanks in advance! :)

Edit: Using: "ember-photoswipe": "0.6.0"

kaermorchen commented 3 years ago

Hello.

Fixed in the version 0.6.1