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%;
|
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>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user