more library artists fixes

This commit is contained in:
vapormusic 2022-03-26 23:23:25 +07:00
parent fedd28d8a6
commit d4b12fd595
3 changed files with 21 additions and 8 deletions

View file

@ -42,7 +42,12 @@
type: String,
required: false,
default: "artists"
}
},
parentSelector: {
type: String,
required: false,
default: null
},
},
data: function() {
return {
@ -69,7 +74,7 @@
},
scrollToTop() {
let target = document.querySelector(".header-text")
document.querySelector("#app-content").scrollTo({
document.querySelector(this.parentSelector ?? ".collection-page").scrollTo({
top: 0,
left: 0,
behavior: 'smooth'