mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +02:00
move list pagination padding to separate container
This commit is contained in:
+6
-1
@@ -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>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user