From 3d710dbb025ad6e4486b62b03d33269caf4be3eb Mon Sep 17 00:00:00 2001 From: ArneBo Date: Wed, 29 Jan 2025 12:04:04 +0100 Subject: [PATCH] fix(front): consistent small cards --- front/src/components/album/Card.vue | 18 ++--- front/src/components/artist/Card.vue | 70 ++++++++++++++----- front/src/components/audio/ChannelCard.vue | 48 ++++++++----- front/src/components/audio/ChannelsWidget.vue | 17 ++--- front/src/components/audio/PlayButton.vue | 4 +- front/src/components/common/ActorLink.vue | 2 +- front/src/components/common/UserLink.vue | 45 +++++------- front/src/components/playlists/Card.vue | 9 +-- front/src/components/radios/Button.vue | 4 +- front/src/components/radios/Card.vue | 20 +++--- front/src/components/ui/Card.vue | 11 ++- front/src/components/ui/button/Options.vue | 9 ++- front/src/components/ui/button/options.scss | 7 +- 13 files changed, 156 insertions(+), 108 deletions(-) diff --git a/front/src/components/album/Card.vue b/front/src/components/album/Card.vue index f5520fded..a2e458a11 100644 --- a/front/src/components/album/Card.vue +++ b/front/src/components/album/Card.vue @@ -4,9 +4,11 @@ import { computed } from 'vue' import { useStore } from '~/store' import { useI18n } from 'vue-i18n' import { momentFormat } from '~/utils/filters' +import defaultCover from '~/assets/audio/default-cover.png' import PlayButton from '~/components/audio/PlayButton.vue' import Card from '~/components/ui/Card.vue' +import Link from '~/components/ui/Link.vue' import TagsList from '~/components/tags/List.vue' import Spacer from '~/components/ui/Spacer.vue' @@ -39,7 +41,7 @@ if (import.meta.env.PROD) { const store = useStore() const imageUrl = computed(() => props.album.cover?.urls.original ? store.getters['instance/absoluteUrl'](props.album.cover?.urls.large_square_crop) - : `${import.meta.env.BASE_URL}embed-default-cover.jpeg` + : defaultCover ) @@ -49,6 +51,7 @@ const imageUrl = computed(() => props.album.cover?.urls.original :image="imageUrl" :tags="album.tags" :to="{name: 'library.albums.detail', params: {id: album.id}}" + small > -