Skip to content

Commit

Permalink
Center Pagination rather than stretching to fill container width
Browse files Browse the repository at this point in the history
Now that the Pagination component has a consistent width regardless of current
page, we can center it without causing the Prev/Next page buttons to move around
while navigating through pages. Previously the Pagination was stretched to fill
the parent, so that the Prev/Next buttons were aligned with the edges of the
table above.
  • Loading branch information
robertknight committed Dec 11, 2024
1 parent 085fc20 commit cfe86f0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ export default function EditGroupMembersForm({
</Scroll>
</div>
{typeof totalPages === 'number' && totalPages > 1 && (
<div className="mt-4">
<div className="mt-4 flex justify-center">
<Pagination
currentPage={pageIndex + 1}
onChangePage={page => setPageIndex(page - 1)}
Expand Down

0 comments on commit cfe86f0

Please sign in to comment.