mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 12:33:03 +00:00
658e7cdbb7
- create a global search store - create a half-baked context menu store -
39 lines
943 B
Vue
39 lines
943 B
Vue
<template>
|
|
<div class="info">
|
|
<div
|
|
v-if="props.collapsed"
|
|
class="image art"
|
|
:style="{
|
|
backgroundImage: `url("${track.image}")`,
|
|
}"
|
|
></div>
|
|
<div class="desc">
|
|
<div>
|
|
<div class="title ellip">{{ track.title }}</div>
|
|
<div class="separator no-border"></div>
|
|
<div class="artists ellip" v-if="track.artists[0] !== ''">
|
|
<span v-for="artist in putCommas(track.artists)" :key="artist">{{
|
|
artist
|
|
}}</span>
|
|
</div>
|
|
<div class="artists" v-else>
|
|
<span>{{ track.albumartist }}</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup>
|
|
import perks from "../../composables/perks";
|
|
import state from "../../composables/state";
|
|
|
|
const track = state.current;
|
|
const props = defineProps({
|
|
collapsed: {
|
|
type: Boolean,
|
|
default: false,
|
|
},
|
|
});
|
|
const putCommas = perks.putCommas;
|
|
</script> |