Skip to content

Commit

Permalink
Fix issue with non-cropped images in deprecated gallery
Browse files Browse the repository at this point in the history
  • Loading branch information
Glen Davies committed Mar 9, 2021
1 parent 063159d commit f4d0ea6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/block-library/src/gallery/deprecated.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
flex-direction: column;
justify-content: center;
position: relative;
align-self: flex-start;

// On mobile and responsive viewports, we allow only 1 or 2 columns at the most.
width: calc(50% - 1em);
Expand Down Expand Up @@ -140,3 +139,11 @@
}
}
}
.wp-block-gallery {
// Non cropped images.
&:not(.is-cropped) {
.blocks-gallery-item {
align-self: flex-start;
}
}
}

0 comments on commit f4d0ea6

Please sign in to comment.