more refactoring

This commit is contained in:
geoffrey45
2022-02-24 12:23:56 +03:00
parent ca790e97d9
commit 2143ad7139
8 changed files with 47 additions and 36 deletions
+38 -11
View File
@@ -6,12 +6,15 @@
}"
class="result-item shadow-sm"
>
<div
class="album-art image"
:style="{
backgroundImage: `url(&quot;${album.image}&quot;)`,
}"
></div>
<div class="_idk">
<div
class="album-art image"
:style="{
backgroundImage: `url(&quot;${album.image}&quot;)`,
}"
></div>
<div class="play shadow-lg image"></div>
</div>
<div class="title ellip">{{ album.name }}</div>
<div class="artistsx ellipsis">{{ album.artist }}</div>
</router-link>
@@ -36,11 +39,35 @@ export default {
color: #ffffffde !important;
transition: all 0.5s ease;
.album-art {
height: 7.5rem;
width: 7.5rem;
border-radius: 0.5rem;
margin-bottom: 0.5rem;
._idk {
position: relative;
&:hover {
.play {
visibility: visible;
}
}
.play {
width: 3rem;
height: 3rem;
background-color: $gray;
border-radius: 1rem;
position: absolute;
left: 2rem;
bottom: 2.5rem;
background-image: url("../../assets/icons/play.svg");
background-size: 2rem;
background-position: 60% 50%;
visibility: hidden;
}
.album-art {
height: 7.5rem;
width: 7.5rem;
border-radius: 0.5rem;
margin-bottom: 0.5rem;
}
}
.title {
+1 -1
View File
@@ -1,5 +1,5 @@
<template>
<tr class="songlist-item" :class="{ current: current.trackid === song.trackid }">
<tr class="songlist-item" :class="{ current: current.trackid === song.trackid }" @dblclick="emitUpdate(song)">
<td class="index">{{ index }}</td>
<td class="flex" @click="emitUpdate(song)">
<div