Open devNigel opened 2 years ago
Support References
Not able to upload screenshots to github. Please try adding screenshots. Thanks.
Not able to upload screenshots to github. Please try adding screenshots
I took care of that for you.
Since the slideshow block is developed in the Jetpack repository, I"ll move your issue there.
Somewhat related: #22834
📌 SCRUBBING
📌 FINDINGS/SCREENSHOTS/VIDEO
Editor
Live Site
📌 ACTIONS
I'm not sure if this is a symptom or a cause but when the slideshow is contained by a row block something is setting a really big width style on the swiper wrapper:
<ul class="wp-block-jetpack-slideshow_swiper-wrapper swiper-wrapper" style="width: 71582800px; transition-duration: 0ms; transform: translate3d(-17895700px, 0px, 0px); height: 951px;" id="swiper-wrapper-04f0905eaa699738" aria-live="polite">
and similarly for its children.
When the slideshow is not contained by a row block, it gets set to something more sensible sounding.
I think this is because a flex-item will use min-width:auto
by default, which means the content is as wide as the space necessary. Setting a min-width:0
on the flex-item element, will fix that.
Unsure how to usefully make that happen from within this block 🤔 recurse upwards through the parents before setting a min-width:0
if it is set to min-width:auto
. Seems risky.
Quick summary
Slideshow Block is not visible when added inside Row block. I was able to reproduce the issue on Simple and Atomic sites.
Steps to reproduce
Screenshot ( FSE theme ):
Editor:
Live page:
Screenshot ( Classic theme ):
Editor:
Live page:
What you expected to happen
Slideshow image to be visible on editor and live page.
What actually happened
Slideshow images were not visible.
Context
User report: 35867969-hc
Platform (Simple, Atomic, or both?)
Simple, Atomic
Theme-specific issue?
Was able to reproduce on FSE and Classic theme.s
Browser, operating system and other notes
No response
Reproducibility
Consistent
Severity
All
Available workarounds?
No response
Workaround details
No response