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
+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;
}