From 8ba125caf2f95af78caf4335772529fdbfd2d2a7 Mon Sep 17 00:00:00 2001 From: jpople Date: Mon, 12 Aug 2024 16:06:12 -0500 Subject: [PATCH] Right-align bulk action buttons on discovery tables (#5181) --- .../tables/DiscoveryFieldBulkActions.tsx | 1 - .../tables/DiscoveryResultTable.tsx | 16 ++++++---------- .../tables/DiscoveryTableBulkActions.tsx | 1 - 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/clients/admin-ui/src/features/data-discovery-and-detection/tables/DiscoveryFieldBulkActions.tsx b/clients/admin-ui/src/features/data-discovery-and-detection/tables/DiscoveryFieldBulkActions.tsx index d47de81b24..33a998a33a 100644 --- a/clients/admin-ui/src/features/data-discovery-and-detection/tables/DiscoveryFieldBulkActions.tsx +++ b/clients/admin-ui/src/features/data-discovery-and-detection/tables/DiscoveryFieldBulkActions.tsx @@ -35,7 +35,6 @@ const DiscoveryFieldBulkActions = ({ direction="row" align="center" justify="center" - w="full" data-testid="bulk-actions-menu" > diff --git a/clients/admin-ui/src/features/data-discovery-and-detection/tables/DiscoveryResultTable.tsx b/clients/admin-ui/src/features/data-discovery-and-detection/tables/DiscoveryResultTable.tsx index 8558caf22f..1dbe73d60b 100644 --- a/clients/admin-ui/src/features/data-discovery-and-detection/tables/DiscoveryResultTable.tsx +++ b/clients/admin-ui/src/features/data-discovery-and-detection/tables/DiscoveryResultTable.tsx @@ -163,17 +163,13 @@ const DiscoveryResultTable = ({ resourceUrn }: MonitorResultTableProps) => { - {!!selectedUrns.length && ( - - {resourceType === StagedResourceType.TABLE && ( - - )} - - )} - {resourceType === StagedResourceType.FIELD && ( - - )} + {resourceType === StagedResourceType.TABLE && !!selectedUrns.length && ( + + )} + {resourceType === StagedResourceType.FIELD && ( + + )}