mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 20:43:04 +00:00
fix albumView using watch function
- other minor changes to almost all files
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
|
||||
@@ -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"> {{ 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>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<tbody>
|
||||
<TrackItem
|
||||
v-for="track in props.tracks"
|
||||
:key="track"
|
||||
:key="track.id"
|
||||
:track="track"
|
||||
/>
|
||||
</tbody>
|
||||
|
||||
Reference in New Issue
Block a user