mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 04:23:01 +00:00
Merge - fix search and add correct image path for album card (#52)
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<router-link
|
||||
:to="{
|
||||
name: 'AlbumView',
|
||||
params: { album: album.album, artist: album.artist },
|
||||
params: { album: album.title, artist: album.artist },
|
||||
}"
|
||||
class="result-item"
|
||||
>
|
||||
@@ -10,20 +10,24 @@
|
||||
<div
|
||||
class="album-art image"
|
||||
:style="{
|
||||
backgroundImage: `url("${album.image}")`,
|
||||
backgroundImage: `url("${imguri + album.image}")`,
|
||||
}"
|
||||
></div>
|
||||
<div class="play shadow-lg image"></div>
|
||||
</div>
|
||||
<div class="title ellip">{{ album.album }}</div>
|
||||
<div class="title ellip">{{ album.title }}</div>
|
||||
<div class="artistsx ellipsis">{{ album.artist }}</div>
|
||||
</router-link>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: ["album"],
|
||||
};
|
||||
<script setup lang="ts">
|
||||
import { AlbumInfo } from "../../interfaces";
|
||||
import { paths } from "../../config";
|
||||
|
||||
const imguri = paths.images.thumb;
|
||||
defineProps<{
|
||||
album: AlbumInfo;
|
||||
}>();
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
|
||||
Reference in New Issue
Block a user