mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-03 17:26:07 +00:00
fix: move pagination beneath table container to make overflow-scroll more intuitive
This commit is contained in:
@@ -805,7 +805,7 @@ export const SecretOverviewPage = () => {
|
|||||||
resetSelectedEntries={resetSelectedEntries}
|
resetSelectedEntries={resetSelectedEntries}
|
||||||
/>
|
/>
|
||||||
<div className="thin-scrollbar mt-4" ref={parentTableRef}>
|
<div className="thin-scrollbar mt-4" ref={parentTableRef}>
|
||||||
<TableContainer>
|
<TableContainer className="rounded-b-none">
|
||||||
<Table>
|
<Table>
|
||||||
<THead>
|
<THead>
|
||||||
<Tr className="sticky top-0 z-20 border-0">
|
<Tr className="sticky top-0 z-20 border-0">
|
||||||
@@ -1003,24 +1003,24 @@ export const SecretOverviewPage = () => {
|
|||||||
</Tr>
|
</Tr>
|
||||||
</TFoot>
|
</TFoot>
|
||||||
</Table>
|
</Table>
|
||||||
{!isOverviewLoading && totalCount > 0 && (
|
|
||||||
<Pagination
|
|
||||||
startAdornment={
|
|
||||||
<SecretTableResourceCount
|
|
||||||
dynamicSecretCount={totalDynamicSecretCount}
|
|
||||||
secretCount={totalSecretCount}
|
|
||||||
folderCount={totalFolderCount}
|
|
||||||
/>
|
|
||||||
}
|
|
||||||
className="border-t border-solid border-t-mineshaft-600"
|
|
||||||
count={totalCount}
|
|
||||||
page={page}
|
|
||||||
perPage={perPage}
|
|
||||||
onChangePage={(newPage) => setPage(newPage)}
|
|
||||||
onChangePerPage={(newPerPage) => setPerPage(newPerPage)}
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
</TableContainer>
|
</TableContainer>
|
||||||
|
{!isOverviewLoading && totalCount > 0 && (
|
||||||
|
<Pagination
|
||||||
|
startAdornment={
|
||||||
|
<SecretTableResourceCount
|
||||||
|
dynamicSecretCount={totalDynamicSecretCount}
|
||||||
|
secretCount={totalSecretCount}
|
||||||
|
folderCount={totalFolderCount}
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
className="rounded-b-md border-t border-solid border-t-mineshaft-600"
|
||||||
|
count={totalCount}
|
||||||
|
page={page}
|
||||||
|
perPage={perPage}
|
||||||
|
onChangePage={(newPage) => setPage(newPage)}
|
||||||
|
onChangePerPage={(newPerPage) => setPerPage(newPerPage)}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<CreateSecretForm
|
<CreateSecretForm
|
||||||
|
|||||||
Reference in New Issue
Block a user