diff --git a/apps/client/src/widgets/collections/Pagination.css b/apps/client/src/widgets/collections/Pagination.css new file mode 100644 index 0000000000..e51faca6e4 --- /dev/null +++ b/apps/client/src/widgets/collections/Pagination.css @@ -0,0 +1,25 @@ +.note-list-pager { + display: flex; + align-items: center; + font-size: .8rem; + + .note-list-pager-page-button-container { + .note-list-pager-page-button { + min-width: 40px; + padding-inline: 0; + + &.note-list-pager-page-button-current { + color: orange; + font-weight: bold; + opacity: unset; + } + } + + .note-list-pager-ellipsis { + display: inline-block; + width: 20px; + text-align: center; + opacity: .5; + } + } +} \ No newline at end of file diff --git a/apps/client/src/widgets/collections/Pagination.tsx b/apps/client/src/widgets/collections/Pagination.tsx index b152e59638..b48550e008 100644 --- a/apps/client/src/widgets/collections/Pagination.tsx +++ b/apps/client/src/widgets/collections/Pagination.tsx @@ -6,6 +6,8 @@ import { useNoteLabelInt } from "../react/hooks"; import { t } from "../../services/i18n"; import ActionButton from "../react/ActionButton"; import Button from "../react/Button"; +import "./Pagination.css"; +import clsx from "clsx"; interface PaginationContext { page: number; @@ -24,16 +26,18 @@ export function Pager({ page, pageSize, setPage, pageCount, totalNotes }: Omit