Skip to content

Commit

Permalink
resized articles and scroll to top on new page
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanUllmann committed Apr 23, 2023
1 parent 9208eaa commit f4741fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ nav ul li a:hover {
}

.btn--back {
position: absolute;
position: fixed;
top: 5.5rem;
left: 3rem;
border: 2px solid var(--accent_border);
Expand Down
2 changes: 1 addition & 1 deletion src/components/Body.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default function Body({
<div className="pagination">
<Pagination
setHits={setHits}
itemsPerPage={20}
itemsPerPage={objectID ? 6 : 20}
hits={hits}
query={query}
setObjectID={setObjectID}
Expand Down

0 comments on commit f4741fb

Please sign in to comment.