Compare commits
No commits in common. "3dd098584c0748c0e251aa3021a4211c5f6d41b5" and "367067eff8208e6ac28e3d857ce0de51fe32fa77" have entirely different histories.
3dd098584c
...
367067eff8
@ -625,8 +625,9 @@ td.fillCell>* {
|
||||
}
|
||||
|
||||
#artists .artistCover {
|
||||
width: 160px;
|
||||
min-width: 100%;
|
||||
height: initial;
|
||||
min-height: 128px;
|
||||
}
|
||||
|
||||
#artists .artistName {
|
||||
|
@ -420,7 +420,6 @@ export default {
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.dialog-window.fullscreen
|
||||
.dialog-body.flat-dialog-header {
|
||||
border-top-left-radius: 8px;
|
||||
border-top-right-radius: 8px;
|
||||
|
@ -1,48 +1,17 @@
|
||||
<template>
|
||||
<DialogBase ref="dialogWindow" :title="album_title" @canceled="closed" :showFooter="false" :disableXscroll="true" :disableYscroll="true" :flatDialogHeader="true">
|
||||
<DialogBase ref="dialogWindow" :title="album_title" @canceled="closed" :showFooter="false" :disableXscroll="true" :disableYscroll="true">
|
||||
<div id="albumViewer" class="flex-row">
|
||||
<div id="header" class="flex-column grow">
|
||||
<div id="header" class="flex-column">
|
||||
<div id="background" :style="coverBackground" />
|
||||
<div it="title" class="flex-column pa grow z1">
|
||||
<img class="glow ma" :src="cover" />
|
||||
|
||||
<span id="stats" class="center">
|
||||
{{ selectedAlbum.title }}
|
||||
<br />
|
||||
by
|
||||
<b @click="gotoArtist" class="pointer">{{ selectedAlbum.artist_name }}</b>
|
||||
<br />
|
||||
<span v-if="album_year">
|
||||
from year <b>{{ album_year }}</b> </span><br />
|
||||
<b>{{ album_tracks.length }}</b> Tracks with a duration of
|
||||
<b>{{ album_duration }}</b>
|
||||
|
||||
</span>
|
||||
<div class=" grow">
|
||||
|
||||
<div class="grow z1 center flex-column">
|
||||
<img class="glow ma24" :src="cover" @dblclick="dblclick" />
|
||||
</div>
|
||||
<div class="flex-row grow ma-top">
|
||||
|
||||
<button class="flat ma-right" title="Favourite" @click="toggleFavourite">
|
||||
<awesome-icon :icon="['fas', 'star']" size="2x" class="white-text favourite active" v-if="isFavourite" />
|
||||
<awesome-icon :icon="['far', 'star']" size="2x" class="white-text favourite" v-else />
|
||||
</button>
|
||||
<button class="flat ma-right" @click="playProgress" v-if="selectedAlbum.progress">
|
||||
<awesome-icon icon="play" size="2x" class="primary-text" title="Keep playing" />
|
||||
</button>
|
||||
<button class="flat ma-right" @click="playAlbum" v-else>
|
||||
<awesome-icon icon="play" size="2x" class="white-text" title="Play" />
|
||||
</button>
|
||||
<button @click="gotoPrevAlbum" class="flat ma-left ma-right" :title="prevAlbum.name" :disabled="!prevAlbum._id">
|
||||
<awesome-icon icon="angle-left" class="ma4 white-text" />
|
||||
</button>
|
||||
<button @click="gotoNextAlbum" class="flat" :title="nextAlbum.name" :disabled="!nextAlbum._id">
|
||||
<awesome-icon icon="angle-right" class="ma4 white-text" />
|
||||
</button>
|
||||
<div class="grow"></div>
|
||||
<awesome-icon icon="star" size="2x" class="favourite ma4" :class="{ active: isFavourite }" @click="toggleFavourite" title="Favourite" />
|
||||
<awesome-icon icon="play" size="2x" class="keepPlaying ma4 primary-text" @click="playProgress" v-if="selectedAlbum.progress" title="Keep playing" />
|
||||
<div id="stats" class="flex-row z1">
|
||||
<DropDown v-if="$store.getters['user/isAdministrator']">
|
||||
<button class="flat center" :title="visibility_text">
|
||||
<awesome-icon :icon="visibility_icon" class="white-text" />
|
||||
<awesome-icon :icon="visibility_icon" />
|
||||
</button>
|
||||
<template v-slot:dropdown-content>
|
||||
<div>
|
||||
@ -64,9 +33,24 @@
|
||||
</div>
|
||||
</template>
|
||||
</DropDown>
|
||||
<div class="grow flex-column">
|
||||
<p class="ma4 center">
|
||||
<span class="grow center">
|
||||
by
|
||||
<b @click="gotoArtist" class="pointer">{{
|
||||
selectedAlbum.artist_name
|
||||
}}</b>
|
||||
<br />
|
||||
<span v-if="album_year">
|
||||
from year <b>{{ album_year }}</b> </span><br />
|
||||
<b>{{ album_tracks.length }}</b> Tracks with a duration of
|
||||
<b>{{ album_duration }}</b>
|
||||
</span>
|
||||
</p>
|
||||
</div>
|
||||
<DropDown v-if="$store.getters['user/isAdministrator']">
|
||||
<button class="flat center">
|
||||
<awesome-icon icon="ellipsis-v" class="white-text" />
|
||||
<awesome-icon icon="ellipsis-v" />
|
||||
</button>
|
||||
<template v-slot:dropdown-content>
|
||||
<div>
|
||||
@ -85,7 +69,6 @@
|
||||
</DropDown>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<ul id="trackList" class="tracks">
|
||||
<li v-for="track in selectedAlbum.tracks" :key="track._id">
|
||||
<TrackItem :track="track" :showCover="false" />
|
||||
@ -117,7 +100,7 @@ export default {
|
||||
window.location.origin + "/#/share?id=" + this.selectedAlbum.share._id;
|
||||
navigator.clipboard.writeText(url);
|
||||
},
|
||||
playAlbum() {
|
||||
dblclick() {
|
||||
this.$store.commit("tracks/resetSelectedTrack");
|
||||
this.$store.commit("radios/resetSelectedRadio");
|
||||
this.$store.dispatch("tracks/playContainer", this.selectedAlbum);
|
||||
@ -349,13 +332,11 @@ export default {
|
||||
|
||||
<style scoped>
|
||||
#albumViewer {
|
||||
height: 400px;
|
||||
height: 366px;
|
||||
width: 640px;
|
||||
}
|
||||
|
||||
#header {
|
||||
width: 304px;
|
||||
height: 400px;
|
||||
position: relative;
|
||||
background-color: black;
|
||||
}
|
||||
@ -367,8 +348,13 @@ export default {
|
||||
|
||||
#stats {
|
||||
z-index: 2;
|
||||
align-items: center;
|
||||
color: var(--white);
|
||||
text-shadow: 0 1px 2px black;
|
||||
line-height: 1.4;
|
||||
background-color: #ffffff40;
|
||||
border-top: 1px solid #ffffff20;
|
||||
border-bottom: 1px solid #00000020;
|
||||
}
|
||||
|
||||
.dropdown-activator button {
|
||||
|
@ -17,11 +17,11 @@
|
||||
<awesome-icon :icon="['fas', 'star']" size="2x" class="white-text favourite active" v-if="isFavourite" />
|
||||
<awesome-icon :icon="['far', 'star']" size="2x" class="white-text favourite" v-else />
|
||||
</button>
|
||||
<button class="flat ma-right" @click="playProgress" title="Keep playing" v-if="selectedArtist.progress">
|
||||
<awesome-icon icon="play" size="2x" class="primary-text" />
|
||||
<button class="flat ma-right" v-if="selectedArtist.progress">
|
||||
<awesome-icon icon="play" size="2x" class="primary-text " @click="playProgress" title="Keep playing" />
|
||||
</button>
|
||||
<button class="flat ma-right" @click="playArtist" title="Play" v-else>
|
||||
<awesome-icon icon="play" size="2x" class="white-text" />
|
||||
<button class="flat ma-right" v-else>
|
||||
<awesome-icon icon="play" size="2x" class="white-text" @click="playArtist" title="Play" />
|
||||
</button>
|
||||
<button @click="gotoPrevArtist" class="flat ma-left ma-right" :title="prevArtist.name" :disabled="!prevArtist._id">
|
||||
<awesome-icon icon="angle-left" class="ma4 white-text" />
|
||||
|
Loading…
Reference in New Issue
Block a user