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%; width: 100%;
height: 100%; height: 100%;
min-height: 0; 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 ( return (
<div className={styles.container}> <div className={styles.container}>
<Fragment key={currentPage}>{children}</Fragment> <Fragment key={currentPage}>{children}</Fragment>
<Pagination <div className={styles.paginationContainer}>
itemsPerPage={itemsPerPage} <Pagination
onChange={onChange} itemsPerPage={itemsPerPage}
total={pageCount} onChange={onChange}
totalItemCount={totalItemCount} total={pageCount}
value={currentPage} totalItemCount={totalItemCount}
/> value={currentPage}
/>
</div>
</div> </div>
); );
}; };