fix current track in queue auto scroll position

- add another inner container to limit the offset
- auto scroll current track to container start
- add todo file
This commit is contained in:
geoffrey45
2022-06-13 09:17:00 +03:00
parent 9a2635d7c3
commit f1ec6309ba
11 changed files with 65 additions and 30 deletions
+1 -1
View File
@@ -13,7 +13,7 @@
</router-link>
</template>
<script setup>
<script setup lang="ts">
const props = defineProps({
folder: {
type: Object,
+2 -4
View File
@@ -20,9 +20,9 @@
/>
</div>
</div>
<div v-else-if="tracks.length === 0 && search_query">
<div v-else-if="tracks.length === 0">
<div class="no-results">
<div class="text">Nothing down here 😑</div>
<div class="text">No tracks here</div>
</div>
</div>
</div>
@@ -33,7 +33,6 @@ import { useRoute } from "vue-router";
import SongItem from "../shared/SongItem.vue";
import state from "../../composables/state";
import useQStore from "../../stores/queue";
import { Track } from "../../interfaces";
@@ -47,7 +46,6 @@ const props = defineProps<{
}>();
let route = useRoute().name;
const search_query = state.search_query;
/**
* Plays a clicked track and updates the queue