diff --git a/apps/client/src/widgets/collections/Pagination.css b/apps/client/src/widgets/collections/Pagination.css index 2fccb8b1ba..fcb5ef6391 100644 --- a/apps/client/src/widgets/collections/Pagination.css +++ b/apps/client/src/widgets/collections/Pagination.css @@ -3,6 +3,13 @@ --note-list-pager-ellipsis-width: 20px; } +.note-list-pager-container { + display: flex; + justify-content: flex-end; + width: 100%; + container: note-list-pager / inline-size; +} + .note-list-pager { display: flex; align-items: center; @@ -35,9 +42,29 @@ } } + .note-list-pager-narrow-counter { + display: none; + min-width: 60px; + text-align: center; + white-space: nowrap; + } + .note-list-pager-total-count { margin-inline-start: 8px; opacity: .75; white-space: nowrap; } -} \ No newline at end of file + + @container note-list-pager (max-width: 550px) { + .note-list-pager-page-button-container, + .note-list-pager-total-count { + background: red; + display: none; + } + + .note-list-pager-narrow-counter { + display: block; + } + } +} + diff --git a/apps/client/src/widgets/collections/Pagination.tsx b/apps/client/src/widgets/collections/Pagination.tsx index d9b7cec697..99e5ae5d81 100644 --- a/apps/client/src/widgets/collections/Pagination.tsx +++ b/apps/client/src/widgets/collections/Pagination.tsx @@ -22,25 +22,30 @@ export function Pager({ page, pageSize, setPage, pageCount, totalNotes }: Omit
-