From 9562f40776a51865727558c79d9b853c6c1b2c65 Mon Sep 17 00:00:00 2001 From: Joe Dolson Date: Sun, 16 Jul 2023 15:57:14 +0000 Subject: [PATCH] Media: Fix admin image editor layout at intermediary widths. Follow up to [56189], which resolved the initial problem but created new problems with control proximity on wide monitors. Change admin image editor panels to use flex so panels only occupy the space needed. Props joedolson, sabernhardt, mikinc860. Fixes #58692. git-svn-id: https://develop.svn.wordpress.org/trunk@56242 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/css/media.css | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/wp-admin/css/media.css b/src/wp-admin/css/media.css index 2810321d28..c94bb26d5d 100644 --- a/src/wp-admin/css/media.css +++ b/src/wp-admin/css/media.css @@ -899,15 +899,10 @@ border color while dragging a file over the uploader drop area */ } .imgedit-panel-content { - display: grid; - grid-template-columns: 1fr; + display: flex; + flex-wrap: wrap; gap: 20px; -} - -@media screen and (min-width: 1200px) { - .imgedit-panel-content.imgedit-panel-tools { - grid-template-columns: 50% 50%; - } + margin-bottom: 20px; } .imgedit-settings { @@ -1129,6 +1124,7 @@ border color while dragging a file over the uploader drop area */ display: flex; column-gap: 4px; align-items: start; + flex-wrap: wrap; } .imgedit-popup-menu {