Skip to content

Commit

Permalink
feat: fixed width issue in frontend while inside stack
Browse files Browse the repository at this point in the history
  • Loading branch information
Mayank-Tripathi32 committed Jan 10, 2025
1 parent e746a95 commit ead112f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/block-library/src/media-text/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,11 @@
object-fit: cover;
}

// We need to set the width explicitly to 100% to make sure the image is responsive and works with stack/crop.
.wp-block-media-text.is-image-fill-element {
width: 100%;
}

/*
* Here we here not able to use a mobile first CSS approach.
* Custom widths are set using inline styles, and on mobile,
Expand Down

0 comments on commit ead112f

Please sign in to comment.