mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-03 20:13:02 +00:00
client: add info icon
for no folders in folder view
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="f-container rounded">
|
<div class="f-container rounded" :class="{ info: !folders.length }">
|
||||||
<p v-if="folders.length">folders in this directory</p>
|
<p v-if="folders.length">folders in this directory</p>
|
||||||
<div id="f-items" v-if="folders.length">
|
<div id="f-items" v-if="folders.length">
|
||||||
<router-link
|
<router-link
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
export default {
|
export default {
|
||||||
props: ["folders"],
|
props: ["folders"],
|
||||||
setup() {
|
setup() {
|
||||||
console.log('props.folders')
|
console.log("props.folders");
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
@@ -35,6 +35,14 @@ export default {
|
|||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.info {
|
||||||
|
background-image: url(../../assets/icons/info.svg);
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: 1rem;
|
||||||
|
background-size: 2rem 2rem;
|
||||||
|
padding-left: 4rem;
|
||||||
|
}
|
||||||
|
|
||||||
#f-items {
|
#f-items {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
|||||||
@@ -17,13 +17,18 @@
|
|||||||
}"
|
}"
|
||||||
></div>
|
></div>
|
||||||
<div>
|
<div>
|
||||||
<span class="ellipsis">{{ song.title }}</span>
|
<span class="ellip">{{ song.title }}</span>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td :style="{ width: songTitleWidth + 'px' }">
|
<td :style="{ width: songTitleWidth + 'px' }">
|
||||||
<span class="artist" v-for="artist in song.artists" :key="artist">{{
|
<div class="ellip">
|
||||||
artist
|
<span
|
||||||
}}</span>
|
class="artist"
|
||||||
|
v-for="artist in song.artists"
|
||||||
|
:key="artist"
|
||||||
|
>{{ artist }}</span
|
||||||
|
>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td :style="{ width: songTitleWidth + 'px' }">{{ song.album }}</td>
|
<td :style="{ width: songTitleWidth + 'px' }">{{ song.album }}</td>
|
||||||
<td
|
<td
|
||||||
@@ -146,7 +151,6 @@ th {
|
|||||||
}
|
}
|
||||||
|
|
||||||
td .artist {
|
td .artist {
|
||||||
color: #b1b1b1fd;
|
|
||||||
font-weight: lighter;
|
font-weight: lighter;
|
||||||
margin-right: 0.5rem;
|
margin-right: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user