List tables: Yet more primary column fallbacks.
Some custom list tables override enough methods for the column definition fallback to never kick in, so let's ensure that toggling columns only applies when a primary column is defined in some way. We also need to show a toggle button when we can when there are no row actions. props Chouby, obenland, ocean90. fixes #33313. Built from https://develop.svn.wordpress.org/trunk@33623 git-svn-id: http://core.svn.wordpress.org/trunk@33590 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -1764,9 +1764,8 @@ div.action-links,
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.wp-list-table th:not(.column-primary),
|
||||
.wp-list-table th:not(.column-primary),
|
||||
.wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.column-primary):not(.check-column) {
|
||||
.wp-list-table th.column-primary ~ th,
|
||||
.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-primary ~ td:not(.check-column) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@@ -1780,7 +1779,7 @@ div.action-links,
|
||||
width: 35px;
|
||||
}
|
||||
|
||||
.wp-list-table .toggle-row {
|
||||
.wp-list-table .column-primary .toggle-row {
|
||||
display: block;
|
||||
}
|
||||
|
||||
@@ -1795,7 +1794,7 @@ div.action-links,
|
||||
padding-right: 50px; /* space for toggle button */
|
||||
}
|
||||
|
||||
.wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.column-primary):not(.check-column) {
|
||||
.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-primary ~ td:not(.check-column) {
|
||||
padding: 3px 8px 3px 35%;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user