GoogleForCreators/web-stories-wp

Image Alignment is off in the Carousel View

narangrishab opened this issue · 3 comments

Bug Description

Image alignment is off due to

.web-stories-list__story-poster img {
position: absolute;
}

while using web stories carousel view

Expected Behaviour

Steps to Reproduce

  1. Wordpress > Post > Text > Web Stories
  2. Select layout > Box Carousel

Screenshots

Screenshot 2023-07-21 at 12 15 14 PM Screenshot 2023-07-21 at 12 15 07 PM

Expected

Screenshot 2023-07-21 at 12 15 19 PM

Additional Context

  • Plugin Version: 1.33.0
  • WordPress Version: 6.2.2
  • Operating System: macOS
  • Browser: Chrome

Which theme is this with? Does it happen when using another theme?

Looks like this is from https://www.andreaabroad.com/, which uses a custom theme and some custom plugins, like a Pinterest button that might interfere, plus using WPBakery Page Builder.


Aside: we could consider adding data-pin-nopin="true" to the story posters to disable the Pinterest "Pin It" functionality for story posters in the carousel.

Not clear what caused the issue, but suggested fixing it with some custom CSS:

.web-stories-list.is-view-type-carousel.is-style-default .web-stories-list__story-poster img {
display: block;
}