Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

Commit

Permalink
Added Auto scroll user back to the top when page navigation is clicked (
Browse files Browse the repository at this point in the history
  • Loading branch information
julien0221 authored and peolic committed Apr 15, 2021
1 parent 2e042ff commit e18acf2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions ui/v2.5/src/components/Changelog/versions/v070.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Added scene queue.

### 🎨 Improvements
* Scroll to top when changing page number.
* Add URL filter criteria for scenes, galleries, movies, performers and studios.
* Add HTTP endpoint for health checking at `/healthz`.
* Support `today` and `yesterday` for `parseDate` in scrapers.
Expand Down
1 change: 1 addition & 0 deletions ui/v2.5/src/hooks/ListHook.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,7 @@ const useList = <QueryResult extends IQueryResult, QueryData extends IDataItem>(
const newFilter = _.cloneDeep(filter);
newFilter.currentPage = page;
updateQueryParams(newFilter);
window.scrollTo(0, 0);
};

const renderFilter = !options.filterHook
Expand Down

0 comments on commit e18acf2

Please sign in to comment.