Skip to content

Commit

Permalink
Slideshow Block: Fix grid blowout when inserted inside Layout Grid Bl…
Browse files Browse the repository at this point in the history
…ock. (#23854)

Co-authored-by: Ivan Ottinger <[email protected]>
  • Loading branch information
yansern and ivan-ottinger authored Apr 11, 2022
1 parent bbe5098 commit 3ac8553
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: bugfix

Slideshow block: Fix grid blowout when Slideshow block is inserted inside a Layout Grid Block.
19 changes: 19 additions & 0 deletions projects/plugins/jetpack/extensions/blocks/slideshow/editor.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
@import '../../shared/styles/gutenberg-base-styles.scss';

// When slideshow block appears inside a layout grid block,
// make it behave like a grid block to prevent grid blowout.
// https://github.com/Automattic/wp-calypso/issues/39956
.wp-block-jetpack-layout-grid-column
> .block-editor-inner-blocks
> .block-editor-block-list__layout
> .block-editor-block-list__block {
// WPCOM
> .wp-block > .wp-block-jetpack-slideshow,
// Self-Hosted
> .wp-block-jetpack-slideshow {
display: grid;

> .swiper-container {
width: 100%;
}
}
}

.wp-block-jetpack-slideshow__add-item {
margin-top: 4px;
width: 100%;
Expand Down

0 comments on commit 3ac8553

Please sign in to comment.