From deaa16216d4261e06553ee0f6aa8f0137f40d9e9 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Tue, 14 Apr 2015 01:20:39 +0000 Subject: [PATCH] Fix the media modal Insert into post button on narrow screens by limiting the width of .media-toolbar-primary and .media-toolbar-secondary only inside .attachments-browser (the top toolbar). Props iseulde, DrewAPicture. Fixes #31908. git-svn-id: https://develop.svn.wordpress.org/trunk@32121 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/css/media-views.css | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/css/media-views.css b/src/wp-includes/css/media-views.css index 67ef1b99fb..08dfa7b9ca 100644 --- a/src/wp-includes/css/media-views.css +++ b/src/wp-includes/css/media-views.css @@ -232,13 +232,11 @@ .media-toolbar-primary { float: right; height: 100%; - max-width: 33%; } .media-toolbar-secondary { float: left; height: 100%; - max-width: 66%; } .media-toolbar-primary > .media-button, @@ -1078,6 +1076,14 @@ display: none; } +.attachments-browser .media-toolbar-primary { + max-width: 33%; +} + +.attachments-browser .media-toolbar-secondary { + max-width: 66%; +} + .uploader-inline .close { background-color: transparent; border: 0;