Updated README.md and tweaked the UI

This commit is contained in:
RemixDev 2020-04-09 00:05:57 +02:00
parent 56b9c511ea
commit bbccd77910
2 changed files with 4 additions and 3 deletions

View File

@ -108,8 +108,9 @@ div#middle_section {
margin: 0px; margin: 0px;
margin-bottom: 4px; margin-bottom: 4px;
} }
.top_result > .info_box > .subtitle { .top_result > .info_box > p.subtitle, .release > p.subtitle {
opacity: 0.75; opacity: 0.75;
font-size: 14px;
} }
.release_grid{ .release_grid{

View File

@ -51,10 +51,10 @@ <h1>{{ names[section] }}</h1>
</table> </table>
</div> </div>
<div v-if="section != 'TRACK' && section != 'TOP_RESULT'" class="release_grid"> <div v-if="section != 'TRACK' && section != 'TOP_RESULT'" class="release_grid">
<div v-for="release in results[section].data.slice(0, 5)" class="release"> <div v-for="release in results[section].data.slice(0, 6)" class="release">
<img v-bind:class="section == 'ARTIST' ? 'circle' : 'rounded'" v-bind:src="(section == 'ARTIST' ? 'https://e-cdns-images.dzcdn.net/images/artist/' + release.ART_PICTURE : 'https://e-cdns-images.dzcdn.net/images/cover/' + (section == 'ALBUM' ? release.ALB_PICTURE : section == 'PLAYLIST' ? release.PLAYLIST_PICTURE : '')) + '/156x156-000000-80-0-0.jpg'"> <img v-bind:class="section == 'ARTIST' ? 'circle' : 'rounded'" v-bind:src="(section == 'ARTIST' ? 'https://e-cdns-images.dzcdn.net/images/artist/' + release.ART_PICTURE : 'https://e-cdns-images.dzcdn.net/images/cover/' + (section == 'ALBUM' ? release.ALB_PICTURE : section == 'PLAYLIST' ? release.PLAYLIST_PICTURE : '')) + '/156x156-000000-80-0-0.jpg'">
<p class="title">{{ section == 'ARTIST' ? release.ART_NAME : section == 'ALBUM' ? release.ALB_TITLE : section == 'PLAYLIST' ? release.TITLE : '' }}</p> <p class="title">{{ section == 'ARTIST' ? release.ART_NAME : section == 'ALBUM' ? release.ALB_TITLE : section == 'PLAYLIST' ? release.TITLE : '' }}</p>
<p class="subtitle"></p> <p class="subtitle">{{ section == 'ARTIST' ? release.NB_FAN + ' fans' : section == 'ALBUM' ? release.ART_NAME+' - '+release.NUMBER_TRACK+' tracks' : section == 'PLAYLIST' ? release.NB_SONG+' tracks' : '' }}</p>
</div> </div>
</div> </div>
</div> </div>