mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-03 20:13:02 +00:00
57 lines
1.2 KiB
Vue
57 lines
1.2 KiB
Vue
<template>
|
|
<div class="queue-actions">
|
|
<div class="left">
|
|
<button class="clear-queue action" @click="queue.clearQueue">
|
|
<ClearSvg />
|
|
<span>Clear</span>
|
|
</button>
|
|
<button class="shuffle-queue action">
|
|
<SaveAsPlaylistSvg />
|
|
<span> Save As Playlist </span>
|
|
</button>
|
|
</div>
|
|
<div class="right">
|
|
<button class="more-action action">
|
|
<MoreSvg />
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import useQueueStore from "../../../stores/queue";
|
|
|
|
import ClearSvg from "@/assets/icons/delete.svg";
|
|
import SaveAsPlaylistSvg from "@/assets/icons/sdcard.svg";
|
|
import MoreSvg from "@/assets/icons/more.svg";
|
|
|
|
const queue = useQueueStore();
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
.queue-actions {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: $small;
|
|
margin-bottom: -1.25rem;
|
|
margin-top: $small;
|
|
|
|
.action {
|
|
padding: $smaller;
|
|
padding-right: $small;
|
|
background-image: linear-gradient(70deg, $gray3, $gray2);
|
|
|
|
svg {
|
|
transform: scale(0.8);
|
|
}
|
|
}
|
|
|
|
.more-action {
|
|
padding-right: $smaller;
|
|
svg {
|
|
transform: scale(1.25);
|
|
}
|
|
}
|
|
}
|
|
</style>
|