Skip to content

Commit

Permalink
fixed paginator styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Andcool-Systems committed Aug 31, 2024
1 parent 6e19e89 commit 6dcc445
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/app/modules/components/paginator.module.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ export const Paginator = ({ total_count, take, onChange }: PaginatorProps) => {

return _display ? <div className={Styles.container}>
{_pages.length > 0 && <>
<IconChevronLeft className={Styles.page} onClick={() => _setPage(last => Math.max(0, last - 1))} />
<IconChevronLeft className={`${Styles.page} ${Styles.arrow}`} onClick={() => _setPage(last => Math.max(0, last - 1))} />
{_pages}
<IconChevronRight className={Styles.page} onClick={() => _setPage(last => Math.min(last + 1, Math.ceil(_totalCount / _take) - 1))} />
<IconChevronRight className={`${Styles.page} ${Styles.arrow}`} onClick={() => _setPage(last => Math.min(last + 1, Math.ceil(_totalCount / _take) - 1))} />
</>
}
</div> : null;
Expand Down
7 changes: 6 additions & 1 deletion src/app/styles/paginator.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@
font-size: 1rem;
width: .8rem;
height: .8rem;
padding: .9rem;
padding: .9rem !important;
margin: .1rem;
}

.arrow {
width: 1.5rem !important;
height: auto;
}
}

0 comments on commit 6dcc445

Please sign in to comment.