From 14e3433b85c5e1868e7fbb9cef285aa2c48b2927 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 17 Oct 2020 01:11:58 +0000 Subject: [PATCH] Administration: Wrap the list table items count to a new line on small screens. This avoids overlapping with action buttons and brings some consistency to bottom paddings across various screens. Props passoniate, afercia, anuj2, rolfsiebers, uxkai, ireneyoast, thijsvanloef, hellofromTonya, audrasjb, helen, SergeyBiryukov. Fixes #49246. git-svn-id: https://develop.svn.wordpress.org/trunk@49178 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/css/edit.css | 4 ++++ src/wp-admin/css/list-tables.css | 14 +++++++++++++- src/wp-admin/edit.php | 2 +- src/wp-admin/users.php | 2 +- 4 files changed, 19 insertions(+), 3 deletions(-) diff --git a/src/wp-admin/css/edit.css b/src/wp-admin/css/edit.css index b4e3949d26..6c7873a798 100644 --- a/src/wp-admin/css/edit.css +++ b/src/wp-admin/css/edit.css @@ -1796,6 +1796,10 @@ table.links-table { padding: 10px 0; } + .edit-term-notes { + display: none; + } + .privacy-text-box { width: auto; } diff --git a/src/wp-admin/css/list-tables.css b/src/wp-admin/css/list-tables.css index 21fd032798..c015d63d94 100644 --- a/src/wp-admin/css/list-tables.css +++ b/src/wp-admin/css/list-tables.css @@ -1696,7 +1696,7 @@ div.action-links, } .tablenav.bottom .tablenav-pages.one-page { - margin: 15px 0 0 0; + margin-top: 15px; height: 0; } @@ -2152,6 +2152,18 @@ div.action-links, grid-template-columns: auto auto; } + .tablenav.bottom .displaying-num { + position: relative; + top: 0; + display: block; + text-align: right; + padding-bottom: 0.5em; + } + + .tablenav.bottom .tablenav-pages.one-page { + height: auto; + } + .tablenav-pages .tablenav-paging-text { float: left; width: 100%; diff --git a/src/wp-admin/edit.php b/src/wp-admin/edit.php index 68786f0f8c..bf54037451 100644 --- a/src/wp-admin/edit.php +++ b/src/wp-admin/edit.php @@ -477,7 +477,7 @@ if ( $wp_list_table->has_items() ) { ?>
-
+
display(); ?> -
+