Skip to content

Commit

Permalink
Fix using the image container with lazyloaded images (#5403)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmuzina authored Oct 30, 2024
1 parent 6b77a8d commit 0a577f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vanilla-framework",
"version": "4.18.1",
"version": "4.18.2",
"author": {
"email": "[email protected]",
"name": "Canonical Webteam"
Expand Down
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 0a577f5

Please sign in to comment.