AssetDialog: Include pagination in stack for better alignment

This commit is contained in:
Gustav Hansen 2022-05-19 10:20:00 +02:00
parent fc42a110be
commit 1af71c1ed1

View File

@ -140,18 +140,18 @@ export const BrowseStep = ({
/>
</Box>
)}
</Stack>
{pagination.pageCount > 0 && (
<Flex justifyContent="space-between">
<PageSize pageSize={queryObject.pageSize} onChangePageSize={onChangePageSize} />
<PaginationFooter
activePage={queryObject.page}
onChangePage={onChangePage}
pagination={pagination}
/>
</Flex>
)}
{pagination.pageCount > 0 && (
<Flex justifyContent="space-between">
<PageSize pageSize={queryObject.pageSize} onChangePageSize={onChangePageSize} />
<PaginationFooter
activePage={queryObject.page}
onChangePage={onChangePage}
pagination={pagination}
/>
</Flex>
)}
</Stack>
</>
);
};