feat: add a cranky scroll to current in queue method

+ fix: media notification image url
This commit is contained in:
geoffrey45
2022-09-19 01:00:16 +03:00
parent 7f717ca701
commit 86dfbeb3ba
4 changed files with 29 additions and 9 deletions
+6 -2
View File
@@ -24,7 +24,7 @@
</template>
<script setup lang="ts">
import { computed, ref, onMounted } from "vue";
import { computed, ref, onMounted, onBeforeUnmount } from "vue";
import { useVirtualList } from "@vueuse/core";
// import { focusElem } from "@/utils";
@@ -53,6 +53,11 @@ const {
onMounted(() => {
scrollTo(queue.currentindex);
queue.setQueueFunction(scrollTo, mouseover);
});
onBeforeUnmount(() => {
queue.setQueueFunction(() => {}, null);
});
// TODO: Handle focusing current track on song end
@@ -64,7 +69,6 @@ onMounted(() => {
overflow: auto;
.inner {
// scrollbar-color: grey transparent;
margin-bottom: 1rem;
}
}
+1 -1
View File
@@ -4,7 +4,7 @@
<input
id="globalsearch"
v-model.trim="search.query"
placeholder="Search your library"
placeholder="Type to search"
type="search"
@blur.prevent="removeFocusedClass"
@focus.prevent="addFocusedClass"