From 72e36d0b864ff214b04b3c2086f2c7f9c2755d77 Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Sun, 28 Nov 2021 23:09:16 +0000 Subject: [PATCH] Media: Ensure media preview is fully viewable in the "Add Media" modal. This change ensures the media preview is not cut off in the "Add Media" modal box, when using the "Insert from URL" feature. Props siliconforks, sabernhardt, mukesh27, ankit-k-gupta. Fixes #53636. git-svn-id: https://develop.svn.wordpress.org/trunk@52263 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/css/media-views.css | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/css/media-views.css b/src/wp-includes/css/media-views.css index 89c9a2abfd..3bcfcd6bc0 100644 --- a/src/wp-includes/css/media-views.css +++ b/src/wp-includes/css/media-views.css @@ -2114,7 +2114,7 @@ .embed-link-settings, .embed-media-settings { position: absolute; - top: 70px; + top: 82px; left: 0; right: 0; bottom: 0; @@ -2122,6 +2122,10 @@ overflow: auto; } +.media-embed .embed-link-settings .link-text { + margin-top: 0; +} + /* * Implementation of bottom padding in overflow content differs across browsers. * We need a different method. See https://github.com/w3c/csswg-drafts/issues/129