fix albumView using watch function

- other minor changes to almost all files
This commit is contained in:
geoffrey45
2022-02-02 21:45:23 +03:00
parent bdfbb59d76
commit 73dec9189e
27 changed files with 231 additions and 231 deletions
+4 -6
View File
@@ -34,17 +34,15 @@ export default {
.right-search .albums-results {
border-radius: 0.5rem;
background: #0f131b44;
margin-top: $small;
padding: $small 0;
padding-bottom: $small;
padding-top: $small;
overflow-x: hidden;
.grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
display: flex;
flex-wrap: wrap;
padding: 0 0 0 $small;
padding: $small $small 0 $small;
gap: $small;
}
}
+2 -1
View File
@@ -42,9 +42,10 @@ export default {
margin-bottom: $small;
.grid {
padding: 0 0 0 $small;
padding: $small $small 0 $small;
display: flex;
flex-wrap: wrap;
gap: $small;
}
}
</style>
+2 -2
View File
@@ -32,8 +32,8 @@ export default {
margin-left: 2rem;
height: 2rem;
.item {
transition: all 0.2s ease-in-out;
&:hover {
width: 4rem;
@@ -48,4 +48,4 @@ export default {
}
}
}
</style>
</style>
+43 -8
View File
@@ -1,13 +1,16 @@
<template>
<div class="options border rounded">
<div class="item info">Filter by:</div>
<div class="item info header">Filter by:</div>
<div
class="item"
v-for="option in options"
:key="option"
@click="addFilter(option.icon)"
>
{{ option.title }}
<div>
<span class="icon">{{ option.icon }}</span>
<span class="title">&nbsp;&nbsp;{{ option.title }}</span>
</div>
</div>
</div>
</template>
@@ -18,23 +21,23 @@ export default {
setup(props, { emit }) {
const options = [
{
title: "🎵 Track",
title: "Track",
icon: "🎵",
},
{
title: "💿 Album",
title: "Album",
icon: "💿",
},
{
title: "🙄 Artist",
title: "Artist",
icon: "🙄",
},
{
title: "😍 Playlist",
title: "Playlist",
icon: "😍",
},
{
title: "📁 Folder",
title: "Folder",
icon: "📁",
},
];
@@ -58,6 +61,38 @@ export default {
.item {
margin: $small;
width: 2.5rem;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
transition: all 0.2s ease-in-out;
position: relative;
.title {
position: absolute;
left: 1.5rem;
top: 0.5rem;
visibility: hidden;
}
.icon {
position: absolute;
top: 0.5rem;
left: .75rem;
}
&:hover {
width: 5.5rem;
.title {
visibility: visible;
}
}
}
.header {
width: 5.5rem;
}
}
</style>
</style>
+1 -1
View File
@@ -6,7 +6,7 @@
<tbody>
<TrackItem
v-for="track in props.tracks"
:key="track"
:key="track.id"
:track="track"
/>
</tbody>