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

@@ -59,6 +59,7 @@
</nav>
<Pagination
ref="pagination"
:items-total="totalCount"
:items-per-page="limit"
/>
@@ -99,6 +100,8 @@ async function fetchActors() {
this.actors = actors;
this.totalCount = totalCount;
this.$refs.pagination.$el.scrollIntoView();
}
function letter() {
@@ -130,7 +133,7 @@ export default {
actors: [],
pageTitle: null,
totalCount: 0,
limit: 30,
limit: 50,
letters: ['all'].concat(Array.from({ length: 26 }, (value, index) => String.fromCharCode(index + 97).toUpperCase())),
};
},