Skip to content

Commit

Permalink
Fix using the image container with lazyloaded images
Browse files Browse the repository at this point in the history
  • Loading branch information
jmuzina committed Oct 30, 2024
1 parent 6b77a8d commit 653a352
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scss/_patterns_image.scss
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ $aspect-ratios: (
justify-content: center;
text-align: center;

// If there is a child element that is not the image, don't let it affect the layout
& > *:not(.p-image-container__image) {
// If there is a child lazyloaded image, don't let it affect the layout
& > .lazyloaded {
display: contents;
}

Expand Down

0 comments on commit 653a352

Please sign in to comment.