[wp-trac] [WordPress Trac] #52070: Erase Personal Data & Export Personal Data Table Nav Free Space Issue
WordPress Trac
noreply at wordpress.org
Tue Dec 15 14:01:58 UTC 2020
#52070: Erase Personal Data & Export Personal Data Table Nav Free Space Issue
-------------------------------------+-------------------------------------
Reporter: urvik1 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Privacy | Version: 5.6
Severity: normal | Resolution:
Keywords: needs-patch needs- | Focuses: ui, css,
design-feedback | administration
-------------------------------------+-------------------------------------
Changes (by sabernhardt):
* keywords: needs-design needs-patch => needs-patch needs-design-feedback
* component: General => Privacy
Comment:
@urvik1 Thanks for the report!
When there are items, that top section does have a Bulk actions dropdown
and item count (plus any pagination links). So hiding that only when there
are no items requires more than a CSS change.
The `display_tablenav` function checks for any items **after** creating
the `tablenav` container div:
https://core.trac.wordpress.org/browser/branches/5.6/src/wp-admin/includes
/class-wp-list-table.php?marks=1318#L1307
If we add a `no-items` class (or similar), then that container could be
hidden.
Another possibility for consideration: only show the "No items" message,
without markup for either the top section or the table.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52070#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list