diff --git a/src/html/shared.html b/src/html/shared.html index 92a7646..48d8801 100644 --- a/src/html/shared.html +++ b/src/html/shared.html @@ -97,6 +97,20 @@ .playError { background-color: lightcoral !important; } + + .aux-button-active{ + fill:rgb(102, 132, 178) !important; + color: rgb(102, 132, 178) !important; + } + + .playlist-text { + width: calc(100% - 25px); + display: inline-block; + } + + .secondary-content { + height: 100%; + } @@ -138,9 +152,8 @@

Now Playing

- - - + +
diff --git a/webapp/assets/js/mstream.player.js b/webapp/assets/js/mstream.player.js index 0df1fc4..3254c1e 100644 --- a/webapp/assets/js/mstream.player.js +++ b/webapp/assets/js/mstream.player.js @@ -814,7 +814,7 @@ const MSTREAMPLAYER = (() => { , temporaryValue , randomIndex ; -f + // While there remain elements to shuffle... while (0 !== currentIndex) { // Pick a remaining element... diff --git a/webapp/assets/js/mstream.vue.player.js b/webapp/assets/js/mstream.vue.player.js index 7ee419f..201a311 100644 --- a/webapp/assets/js/mstream.vue.player.js +++ b/webapp/assets/js/mstream.vue.player.js @@ -65,10 +65,10 @@ const VUEPLAYERCORE = (() => { }, template: `
  • - {{ comtext }} - - - +
    {{ comtext }}
    + + +
  • `, props: ['index', 'song'], methods: { @@ -79,8 +79,10 @@ const VUEPLAYERCORE = (() => { // MSTREAMPLAYER.removeSongAtPosition(this.index, false); // }, downloadSong: function (event) { - // $("#download-file").attr("href", "/media/" + this.song.filepath + "?token=" + MSTREAMAPI.currentServer.token); - // document.getElementById('download-file').click(); + const link = document.createElement("a"); + link.download = ''; + link.href = this.song.url; + link.dispatchEvent(new MouseEvent('click', {bubbles: true, cancelable: true, view: window})); } }, computed: {