From a96a7288dde1126f4ca5c3a3829f6a550b912561 Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Thu, 30 May 2024 13:41:37 +0200 Subject: [PATCH] Always show Actions table header. (#61847) Co-authored-by: afercia Co-authored-by: t-hamano Co-authored-by: jameskoster --- packages/dataviews/src/style.scss | 7 ++++++- packages/dataviews/src/view-table.tsx | 5 ++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/dataviews/src/style.scss b/packages/dataviews/src/style.scss index 66ba61147bc88..bfff3786b1112 100644 --- a/packages/dataviews/src/style.scss +++ b/packages/dataviews/src/style.scss @@ -119,7 +119,8 @@ th:first-child { padding-left: $grid-unit-60; - .dataviews-view-table-header-button { + .dataviews-view-table-header-button, + .dataviews-view-table-header { margin-left: - #{$grid-unit-10}; } } @@ -235,6 +236,10 @@ } } + .dataviews-view-table-header { + padding-left: $grid-unit-05; + } + .dataviews-view-table__actions-column { width: 1%; } diff --git a/packages/dataviews/src/view-table.tsx b/packages/dataviews/src/view-table.tsx index dcfb8a67bf363..075a60fccd129 100644 --- a/packages/dataviews/src/view-table.tsx +++ b/packages/dataviews/src/view-table.tsx @@ -15,7 +15,6 @@ import { privateApis as componentsPrivateApis, CheckboxControl, Spinner, - VisuallyHidden, } from '@wordpress/components'; import { forwardRef, @@ -549,9 +548,9 @@ function ViewTable< Item extends AnyItem >( { data-field-id="actions" className="dataviews-view-table__actions-column" > - + { __( 'Actions' ) } - + ) }