From 981377b0017ce57afccfeac4795e5ed983c07870 Mon Sep 17 00:00:00 2001 From: Oliver Juhas Date: Thu, 25 Oct 2018 17:36:23 +0200 Subject: [PATCH] Media & Text: Fixing vertical alignment of the image (#11025) --- packages/block-library/src/media-text/editor.scss | 2 +- packages/block-library/src/media-text/style.scss | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/block-library/src/media-text/editor.scss b/packages/block-library/src/media-text/editor.scss index 41c38c97758daf..a703667375135c 100644 --- a/packages/block-library/src/media-text/editor.scss +++ b/packages/block-library/src/media-text/editor.scss @@ -43,7 +43,7 @@ figure.block-library-media-text__media-container { .wp-block-media-text .block-library-media-text__media-container img, .wp-block-media-text .block-library-media-text__media-container video { - margin-bottom: -8px; + vertical-align: middle; width: 100%; } diff --git a/packages/block-library/src/media-text/style.scss b/packages/block-library/src/media-text/style.scss index 86e64b4bd27b1d..01e788315e8be9 100644 --- a/packages/block-library/src/media-text/style.scss +++ b/packages/block-library/src/media-text/style.scss @@ -31,5 +31,5 @@ .wp-block-media-text > figure > video { max-width: unset; width: 100%; - margin-bottom: -6px; + vertical-align: middle; }