mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 12:33:03 +00:00
feat: add a cranky scroll to current in queue method
+ fix: media notification image url
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user