Skip to content

Commit 72a399a

Browse files
authored
center pagination (#757)
1 parent e292217 commit 72a399a

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@nordcloud/gnui",
33
"description": "Nordcloud Design System - a collection of reusable React components used in Nordcloud's SaaS products",
4-
"version": "11.2.0",
4+
"version": "11.2.1",
55
"license": "MIT",
66
"repository": {
77
"type": "git",

src/components/extendedPagination/ExtendedPagination.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,12 @@ function Pagination({
5959
currentPage + baseNumberOfPages <= nPages && nPages > baseNumberOfPages;
6060

6161
return (
62-
<nav className="pagination" role="navigation" aria-label="pagination">
62+
<nav
63+
className="pagination"
64+
role="navigation"
65+
aria-label="pagination"
66+
style={{ transform: "translate(-50%, 0)" }}
67+
>
6368
<ul className="pagination-list">
6469
<When condition={currentPage > firstPage}>
6570
<li>

0 commit comments

Comments
 (0)