From e608cd21ac54feb72bfd08f4f289810b336b9146 Mon Sep 17 00:00:00 2001 From: Jorge Costa Date: Tue, 11 Feb 2020 19:16:57 +0000 Subject: [PATCH] Upload: Fix Plugin and Theme upload form are misaligned. This commit makes sure that when uploading a plugin or theme file, the Install Now button is correctly aligned, and the button does not drops to the next line if filename is long. Props seedsca, SergeyBiryukov, audrasjb. Fixes #48859. git-svn-id: https://develop.svn.wordpress.org/trunk@47271 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/css/themes.css | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/wp-admin/css/themes.css b/src/wp-admin/css/themes.css index 2b26a75f49..029544ba51 100644 --- a/src/wp-admin/css/themes.css +++ b/src/wp-admin/css/themes.css @@ -1049,7 +1049,14 @@ body.folded .theme-browser ~ .theme-overlay .theme-wrap { padding: 30px; margin: 30px auto; max-width: 380px; + display: flex; } + +.upload-theme .wp-upload-form > input[type="file"], +.upload-plugin .wp-upload-form > input[type="file"] { + padding: 5px 1em 0 0; +} + .upload-theme .install-help, .upload-plugin .install-help { color: #555d66; /* #f1f1f1 background */