fix ArtistName component width calculation in vTooltip

+ add tracklist breakpoints to virtual scroll page layout
This commit is contained in:
geoffrey45
2022-09-24 09:14:15 +03:00
committed by Mungai Njoroge
parent 1c3998aa25
commit 61750f7126
6 changed files with 78 additions and 42 deletions
-19
View File
@@ -157,25 +157,6 @@ function getTrackList() {
background-color: $gray4;
color: $white !important;
}
.highlighted {
color: $white !important;
animation: blinker 1.5s ease 1s;
}
@keyframes blinker {
25% {
background-color: $gray4;
}
50% {
background-color: transparent;
}
75% {
background-color: $gray4;
}
}
}
}
+2 -2
View File
@@ -31,6 +31,7 @@
<ArtistName
:artists="track?.artist || []"
:albumartist="track?.albumartist || 'Play something'"
:small="true"
class="artists"
/>
</div>
@@ -106,9 +107,8 @@ const imguri = paths.images.thumb.large;
font-weight: 900;
margin: 0 auto;
}
.artists {
font-size: 0.85rem;
opacity: 0.5;
margin: 0 auto;
+12 -3
View File
@@ -1,9 +1,16 @@
<template>
<div v-tooltip style="width: auto">
<div class="ellip" v-if="artists === null || artists.length === 0">
<div
v-tooltip
style="width: fit-content"
class="ellip"
:style="{
fontSize: small ? '0.85rem' : smaller ? 'small' : '',
}"
>
<div v-if="artists === null || artists.length === 0">
<span>{{ albumartist }}</span>
</div>
<div class="ellip" v-else>
<div v-else>
<span v-for="artist in putCommas(artists)" :key="artist">{{
artist
}}</span>
@@ -17,5 +24,7 @@ import { putCommas } from "@/utils";
const props = defineProps<{
artists: string[] | null;
albumartist: string | undefined;
small?: boolean;
smaller?: boolean;
}>();
</script>
+5 -2
View File
@@ -28,7 +28,11 @@
</div>
<hr />
<div class="artist">
<ArtistName :artists="track.artist" :albumartist="track.albumartist" />
<ArtistName
:artists="track.artist"
:albumartist="track.albumartist"
:smaller="true"
/>
</div>
</div>
<div
@@ -140,7 +144,6 @@ const playThis = (track: Track) => {
}
.artist {
font-size: small;
opacity: 0.67;
width: fit-content;
}