Index: media-views.css
===================================================================
--- media-views.css	(revision 40266)
+++ media-views.css	(working copy)
@@ -242,6 +242,7 @@
 	width: calc(48% - 12px);
 }
 
+/* #40152
 .media-modal-content .attachments-browser .media-toolbar-secondary {
 	width: 66%;
 }
@@ -249,6 +250,7 @@
 .media-modal-content .media-toolbar-primary.search-form {
 	width: 33%;
 }
+*/
 
 .media-modal-content .media-toolbar-primary .media-button {
 	float: right;
@@ -279,6 +281,19 @@
 	overflow: hidden;
 }
 
+/* #40152 */
+.media-frame-toolbar .media-toolbar {
+	top: initial;
+	bottom: -45px;
+	height: auto;
+	overflow: initial;
+}
+@media screen and (max-width: 782px) {
+	.media-frame-toolbar .media-toolbar {
+		bottom: -48px; /* #40152 : 3px button tab size compensation */
+	}
+}
+
 .media-toolbar-primary {
 	float: right;
 	height: 100%;
@@ -696,6 +711,9 @@
 	bottom: 0;
 	height: 60px;
 	z-index: 100;
+	/* #40152 */
+	bottom: 60px;
+	height: auto;
 }
 
 .media-frame.hide-menu .media-frame-title,
