Fixed scroll to top.

This commit is contained in:
DebaucheryLibrarian
2021-01-17 21:24:20 +01:00
parent 8bc1fbf530
commit dd5284c55a
35 changed files with 52 additions and 34 deletions

View File

@@ -31,7 +31,11 @@
/>
</Scroll>
<FilterBar :fetch-releases="fetchReleases" />
<FilterBar
ref="filter"
:fetch-releases="fetchReleases"
/>
<Releases :releases="releases" />
<Pagination
@@ -73,6 +77,8 @@ async function fetchReleases() {
this.hasMedia = this.tag.poster || this.tag.photos.length > 0;
this.description = this.tag.description && converter.makeHtml(escapeHtml(this.tag.description));
this.$refs.filter.$el.scrollIntoView();
}
async function mounted() {
@@ -94,7 +100,7 @@ export default {
description: null,
releases: null,
totalCount: 0,
limit: 15,
limit: 20,
pageTitle: null,
hasMedia: false,
expanded: false,