Skip to content

Commit

Permalink
style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ibastawisi committed Nov 14, 2024
1 parent 1f946cb commit f8c800a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Documents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ const DocumentsGrid: React.FC<{ documents: UserDocument[], user?: User, initiali
<DocumentCard userDocument={document} user={user} />
</Grid>)}
</Grid>
{pages > 1 && <Pagination count={pages} page={page} onChange={handlePageChange} sx={{ display: "flex", justifyContent: "center", width: "100%", position: "sticky", bottom: 0, zIndex: 2, '& .MuiPagination-ul': { backgroundColor: 'var(--mui-palette-AppBar-defaultBg)', p: 1, my: 1.5, borderRadius: 6 }}} />}
{pages > 1 && <Pagination count={pages} page={page} onChange={handlePageChange} sx={{ position: "sticky", bottom: 0, mx: 'auto', '& .MuiPagination-ul': { backgroundColor: 'var(--mui-palette-AppBar-defaultBg)', p: 1, my: 1.5, borderRadius: 6 }}} />}
</Box>
);
});
Expand Down
2 changes: 1 addition & 1 deletion src/components/User/UserDocuments.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const UserDocuments: React.FC<{ documents?: UserDocument[] }> = ({ documents })
<DocumentCard userDocument={document} />
</Grid>)}
</Grid>
{pages > 1 && <Pagination count={pages} page={page} onChange={handlePageChange} sx={{ display: "flex", justifyContent: "center", width: "100%", position: "sticky", bottom: 0, zIndex: 2, '& .MuiPagination-ul': { backgroundColor: 'var(--mui-palette-AppBar-defaultBg)', p: 1, my: 1.5, borderRadius: 6 } }} />}
{pages > 1 && <Pagination count={pages} page={page} onChange={handlePageChange} sx={{ position: "sticky", bottom: 0, mx: 'auto', '& .MuiPagination-ul': { backgroundColor: 'var(--mui-palette-AppBar-defaultBg)', p: 1, my: 1.5, borderRadius: 6 } }} />}
</Box>
</>}
{showEmpty && <Box sx={{ display: 'flex', flexDirection: "column", alignItems: "center", my: 5, gap: 2 }}>
Expand Down

0 comments on commit f8c800a

Please sign in to comment.