Skip to content

Commit

Permalink
Fixes #37578 - remove space between button in generic table
Browse files Browse the repository at this point in the history
  • Loading branch information
MariaAga authored and jeremylenz committed Jun 24, 2024
1 parent 49d4405 commit e9891a9
Showing 1 changed file with 12 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,10 @@ const TableIndexPage = ({
<Toolbar ouiaId="table-toolbar" className="table-toolbar">
<ToolbarContent>
{searchable && (
<ToolbarGroup>
<ToolbarGroup
className="toolbar-group-search"
variant="filter-group"
>
{selectionToolbar}
<ToolbarItem className="toolbar-search">
<SearchBar
Expand All @@ -240,21 +243,20 @@ const TableIndexPage = ({
)}
</ToolbarGroup>
)}
{actionButtons.length > 0 && (
{(customToolbarItems || actionButtons.length > 0) && (
<ToolbarGroup
alignment={{ default: 'alignLeft' }}
className="table-toolbar-actions"
variant="button-group"
>
<ToolbarItem>
<ActionButtons buttons={actionButtons} />
</ToolbarItem>
{actionButtons.length > 0 && (
<ToolbarItem>
<ActionButtons buttons={actionButtons} />
</ToolbarItem>
)}
{customToolbarItems && customToolbarItems}
</ToolbarGroup>
)}

{customToolbarItems && (
<ToolbarGroup>{customToolbarItems}</ToolbarGroup>
)}

{total > 0 && (
<Pagination
key="table-index-page-top-pagination"
Expand Down

0 comments on commit e9891a9

Please sign in to comment.