mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 04:53:01 +00:00
fix scrolling in artist search page
This commit is contained in:
committed by
Mungai Njoroge
parent
6d8a9f880b
commit
fff2c53801
@@ -2,7 +2,9 @@
|
|||||||
<div
|
<div
|
||||||
class="album-header-ambient rounded"
|
class="album-header-ambient rounded"
|
||||||
style="height: 100%; width: 100%"
|
style="height: 100%; width: 100%"
|
||||||
:style="{ boxShadow: album.colors ? `0 .5rem 2rem ${album.colors[0]}` : '' }"
|
:style="{
|
||||||
|
boxShadow: album.colors ? `0 .5rem 2rem ${album.colors[0]}` : '',
|
||||||
|
}"
|
||||||
></div>
|
></div>
|
||||||
<div
|
<div
|
||||||
class="a-header rounded"
|
class="a-header rounded"
|
||||||
@@ -52,9 +54,12 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="art" v-if="!albumHeaderSmall">
|
<div class="art" v-if="!albumHeaderSmall">
|
||||||
<img
|
<img
|
||||||
:src="imguri.artist + album.artistimg"
|
v-for="a in album.albumartists"
|
||||||
|
:src="imguri.artist + a.image"
|
||||||
class="shadow-lg circular"
|
class="shadow-lg circular"
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
|
:title="a.name"
|
||||||
|
:style="{ border: `solid 2px ${album.colors[0]}` }"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -76,7 +81,7 @@ import ArtistName from "@/components/shared/ArtistName.vue";
|
|||||||
|
|
||||||
import PlayBtnRect from "../shared/PlayBtnRect.vue";
|
import PlayBtnRect from "../shared/PlayBtnRect.vue";
|
||||||
|
|
||||||
defineProps<{
|
const props = defineProps<{
|
||||||
album: AlbumInfo;
|
album: AlbumInfo;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
@@ -151,8 +156,29 @@ useVisibility(albumheaderthing, handleVisibilityState);
|
|||||||
align-items: flex-end;
|
align-items: flex-end;
|
||||||
|
|
||||||
.art {
|
.art {
|
||||||
display: flex;
|
display: inline-flex;
|
||||||
align-items: flex-end;
|
align-items: center;
|
||||||
|
flex-direction: row-reverse;
|
||||||
|
// background-color: red;
|
||||||
|
|
||||||
|
img {
|
||||||
|
height: 4rem;
|
||||||
|
background-color: $gray;
|
||||||
|
border: solid 2px $white;
|
||||||
|
}
|
||||||
|
|
||||||
|
img:last-child {
|
||||||
|
height: 4rem;
|
||||||
|
margin-top: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
img:not(:last-child) {
|
||||||
|
margin-left: -2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
img:hover {
|
||||||
|
z-index: 10;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
|
|||||||
@@ -71,7 +71,6 @@ const getAlbumsFromArtist = async (
|
|||||||
limit: number = 2,
|
limit: number = 2,
|
||||||
exclude: string
|
exclude: string
|
||||||
) => {
|
) => {
|
||||||
console.log(albumartists)
|
|
||||||
const { data } = await useAxios({
|
const { data } = await useAxios({
|
||||||
url: albumsByArtistUrl,
|
url: albumsByArtistUrl,
|
||||||
props: {
|
props: {
|
||||||
|
|||||||
+1
-1
@@ -52,7 +52,7 @@ export default defineStore("Queue", {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const track = this.tracklist[index];
|
const track = this.tracklist[index];
|
||||||
const uri = `${paths.api.files}/${track.id}-${track.trackhash}`;
|
const uri = `${paths.api.files}/${track.trackhash}`;
|
||||||
|
|
||||||
new Promise((resolve, reject) => {
|
new Promise((resolve, reject) => {
|
||||||
audio.autoplay = true;
|
audio.autoplay = true;
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
* @returns a string with commas in between each artist
|
* @returns a string with commas in between each artist
|
||||||
*/
|
*/
|
||||||
export default (artists: string[]) => {
|
export default (artists: string[]) => {
|
||||||
let result = [];
|
let result: string[] = [];
|
||||||
|
|
||||||
artists.forEach((i, index, artists) => {
|
artists.forEach((i, index, artists) => {
|
||||||
if (index !== artists.length - 1) {
|
if (index !== artists.length - 1) {
|
||||||
|
|||||||
@@ -13,7 +13,4 @@ import ArtistCard from "@/components/shared/ArtistCard.vue";
|
|||||||
import useSearchStore from "@/stores/search";
|
import useSearchStore from "@/stores/search";
|
||||||
|
|
||||||
const search = useSearchStore();
|
const search = useSearchStore();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
|
||||||
</style>
|
|
||||||
@@ -180,6 +180,7 @@ onMounted(() => {
|
|||||||
gap: 1.75rem 0;
|
gap: 1.75rem 0;
|
||||||
|
|
||||||
padding-bottom: 4rem;
|
padding-bottom: 4rem;
|
||||||
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
button.load-more {
|
button.load-more {
|
||||||
|
|||||||
Reference in New Issue
Block a user