Skip to content

Commit a4a5b07

Browse files
Mayank-Tripathi32Mayank-Tripathi32carolinant-hamano
authored
Fixed Media & Text Block - Image not rendered properly on frontend when inside stack (#68610)
* feat: fixed width issue in frontend while inside stack * Revert "feat: fixed width issue in frontend while inside stack" This reverts commit abf61a9. * revert to absolute positioning * chore: apply diff Co-authored-by: Mayank-Tripathi32 <mayanktripathi32@git.wordpress.org> Co-authored-by: carolinan <poena@git.wordpress.org> Co-authored-by: t-hamano <wildworks@git.wordpress.org>
1 parent bdd0097 commit a4a5b07

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

packages/block-library/src/media-text/style.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@
106106

107107
/* Image fill for versions 8 and onwards */
108108
.wp-block-media-text.is-image-fill-element > .wp-block-media-text__media {
109-
position: relative;
110109
height: 100%;
111110
min-height: 250px;
112111
}
@@ -117,7 +116,6 @@
117116
}
118117

119118
.wp-block-media-text.is-image-fill-element > .wp-block-media-text__media img {
120-
position: absolute;
121119
width: 100%;
122120
height: 100%;
123121
object-fit: cover;

0 commit comments

Comments
 (0)