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

View File

@ -81,7 +81,7 @@ const menus = [
display: flex;
align-items: flex-start;
justify-content: flex-start;
padding: $smaller 0;
padding: $small 0;
&:hover {
background-color: $gray3;

View File

@ -42,11 +42,7 @@ const notifStore = useNotifStore();
place-items: center;
align-items: center;
box-shadow: 0px 0px 2rem rgb(0, 0, 0);
.link {
font-weight: bold;
text-decoration: underline;
}
font-size: .85rem;
}
.notif-error {

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() {

View File

@ -25,7 +25,7 @@ const pStore = usePStore();
scrollbar-color: $gray2 transparent;
.grid {
grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
gap: 1rem;
@include for-desktop-down {