implement reactive breakpoints

+ fix breaking queue page when there's no data
This commit is contained in:
geoffrey45
2022-09-10 20:15:20 +03:00
parent eb774eeaeb
commit 32b309b6ee
7 changed files with 74 additions and 25 deletions
+3 -3
View File
@@ -25,10 +25,10 @@
</router-link>
<div class="bottom">
<div class="title ellip t-center">{{ props.track?.title }}</div>
<div class="title ellip t-center">{{ props.track?.title || '♥ Hello ♥' }}</div>
<ArtistName
:artists="track?.artists || ['Artist']"
:albumartist="track?.albumartist"
:artists="track?.artists || []"
:albumartist="track?.albumartist || 'Play something'"
class="artists"
/>
</div>
+2 -2
View File
@@ -82,7 +82,7 @@ function getSource() {
};
default:
return { name: "Ghost source" };
return { name: "👻 Ghost source", location: {} };
}
}
@@ -113,13 +113,13 @@ const { name, icon: SourceIcon, location } = getSource();
grid-template-columns: max-content 1fr;
align-items: center;
padding: $smaller $small;
height: 100%;
}
svg {
transform: scale(0.9);
}
}
}
.queue-actions {
+4 -1
View File
@@ -1,6 +1,9 @@
<template>
<div v-tooltip="returnArtists()" style="width: auto">
<div class="ellip" v-if="artists[0] === '' && artists.length === 1">
<div
class="ellip"
v-if="artists.length === 0 || (artists[0] === '' && artists.length === 1)"
>
<span>{{ albumartist }}</span>
</div>
<div class="ellip" v-else>