make playlist cards smaller on playlist list page

This commit is contained in:
geoffrey45
2022-08-31 18:35:05 +03:00
parent 6f138005f5
commit c782e400c6
4 changed files with 13 additions and 23 deletions
+10 -16
View File
@@ -80,27 +80,21 @@ export default defineStore("search", () => {
function fetchAlbums(query: string) {
if (!query) return;
startLoading();
searchAlbums(query)
.then((res) => {
albums.value = res.albums;
albums.more = res.more;
albums.query = query;
})
.then(() => stopLoading());
searchAlbums(query).then((res) => {
albums.value = res.albums;
albums.more = res.more;
albums.query = query;
});
}
function fetchArtists(query: string) {
if (!query) return;
startLoading();
searchArtists(query)
.then((res) => {
artists.value = res.artists;
artists.more = res.more;
artists.query = query;
})
.then(() => stopLoading());
searchArtists(query).then((res) => {
artists.value = res.artists;
artists.more = res.more;
artists.query = query;
});
}
function loadTracks() {