move list pagination padding to separate container

This commit is contained in:
jeffvli
2025-10-03 17:53:06 -07:00
parent 6ae103850b
commit 9d15e8d0a4
2 changed files with 15 additions and 8 deletions
@@ -5,5 +5,10 @@
width: 100%;
height: 100%;
min-height: 0;
padding: var(--theme-spacing-md);
overflow: hidden;
}
.pagination-container {
padding: var(--theme-spacing-sm) var(--theme-spacing-sm);
overflow: hidden;
}
@@ -24,13 +24,15 @@ export const ItemListWithPagination = ({
return (
<div className={styles.container}>
<Fragment key={currentPage}>{children}</Fragment>
<Pagination
itemsPerPage={itemsPerPage}
onChange={onChange}
total={pageCount}
totalItemCount={totalItemCount}
value={currentPage}
/>
<div className={styles.paginationContainer}>
<Pagination
itemsPerPage={itemsPerPage}
onChange={onChange}
total={pageCount}
totalItemCount={totalItemCount}
value={currentPage}
/>
</div>
</div>
);
};