diff --git a/searching-front/app/core/components/Pagination/Pagination.tsx b/searching-front/app/core/components/Pagination/Pagination.tsx index eadeeae..63b476a 100644 --- a/searching-front/app/core/components/Pagination/Pagination.tsx +++ b/searching-front/app/core/components/Pagination/Pagination.tsx @@ -14,7 +14,10 @@ const Pagination = ({ currentPage, pagesCount, onPageChange }: Props) => { onPageChange(params.selected)} + onPageChange={(params) => { + window.scrollTo(0,0); + onPageChange(params.selected); + }} pageRangeDisplayed={3} pageCount={pagesCount} previousLabel="<" diff --git a/searching-front/app/core/global.css b/searching-front/app/core/global.css index 8d91bff..8b29d55 100644 --- a/searching-front/app/core/global.css +++ b/searching-front/app/core/global.css @@ -41,9 +41,6 @@ body { src: url(/IBMPlexMono-Bold.woff2) format("woff2"); } -body { - background: #08c; -} html, #__next { position: relative;