Skip to content

Cards Carousel: Scope overflow hidden to panel instead of cell#2301

Open
Misplon wants to merge 1 commit intodevelopfrom
fix/post-carousel-cards-image-size
Open

Cards Carousel: Scope overflow hidden to panel instead of cell#2301
Misplon wants to merge 1 commit intodevelopfrom
fix/post-carousel-cards-image-size

Conversation

@Misplon
Copy link
Copy Markdown
Member

@Misplon Misplon commented Apr 5, 2026

Summary

  • Fixes an issue where multiple Post Carousel Cards widgets in the same Layout Builder row rendered the last widget's featured image at a slightly smaller size
  • The overflow: hidden added in 5158f04 was being set on the cell parent, affecting flex layout calculations for sibling cells
  • Scopes overflow: hidden to .so-panel instead of .so-panel.parent() to preserve shadow clipping without impacting cell sizing

Test plan

  • Add three Post Carousel Cards widgets in a single Layout Builder row with spacer cells on each side
  • Verify all featured images render at the same size
  • Verify card shadows are still properly clipped and don't overflow the cell

Fixes an issue where multiple Post Carousel Cards widgets in the same
row would render the last widget's featured image at a slightly smaller
size. The overflow:hidden was being set on the cell parent, which
affected flex layout calculations for sibling cells.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Misplon Misplon requested a review from AlexGStapleton April 5, 2026 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant