Skip to content

Commit

Permalink
Right-align bulk action buttons on discovery tables (#5181)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpople authored Aug 12, 2024
1 parent fdbbc4a commit 8ba125c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ const DiscoveryFieldBulkActions = ({
direction="row"
align="center"
justify="center"
w="full"
data-testid="bulk-actions-menu"
>
<ButtonGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,17 +163,13 @@ const DiscoveryResultTable = ({ resourceUrn }: MonitorResultTableProps) => {
<SearchInput value={searchQuery} onChange={setSearchQuery} />
</Box>
<IconLegendTooltip />
{!!selectedUrns.length && (
<Flex align="center">
{resourceType === StagedResourceType.TABLE && (
<DiscoveryTableBulkActions selectedUrns={selectedUrns} />
)}
</Flex>
)}
{resourceType === StagedResourceType.FIELD && (
<DiscoveryFieldBulkActions resourceUrn={resourceUrn!} />
)}
</Flex>
{resourceType === StagedResourceType.TABLE && !!selectedUrns.length && (
<DiscoveryTableBulkActions selectedUrns={selectedUrns} />
)}
{resourceType === StagedResourceType.FIELD && (
<DiscoveryFieldBulkActions resourceUrn={resourceUrn!} />
)}
</TableActionBar>
<FidesTableV2
tableInstance={tableInstance}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ const DiscoveryTableBulkActions = ({
direction="row"
align="center"
justify="center"
w="full"
data-testid="bulk-actions-menu"
>
<Text
Expand Down

0 comments on commit 8ba125c

Please sign in to comment.