Switch queue's line break before album from HTML to CSS.
authoreb041592 <35889760+eb041592@users.noreply.github.com>
Wed, 4 Apr 2018 17:44:08 +0000 (19:44 +0200)
committereb041592 <35889760+eb041592@users.noreply.github.com>
Wed, 4 Apr 2018 21:06:19 +0000 (23:06 +0200)
htdocs/css/mpd.css
htdocs/js/mpd.js

index 8931c92..6579fcc 100644 (file)
@@ -60,8 +60,10 @@ body {
 }
 
 #salamisandwich td:nth-child(2) span {
-  font-style:italic;
-  font-size:90%;
+  font-style: italic;
+  font-size: 90%;
+
+  display: block;
 }
 
 tbody {
index 5112874..a79affa 100644 (file)
@@ -241,7 +241,7 @@ function webSocketConnect() {
 
                         $('#salamisandwich > tbody').append(
                             "<tr trackid=\"" + obj.data[song].id + "\"><td>" + (obj.data[song].pos + 1) + "</td>" +
-                                "<td>" + obj.data[song].artist + "<br /><span>" + obj.data[song].album  + "</span></td>" +
+                                "<td>" + obj.data[song].artist + "<span>" + obj.data[song].album  + "</span></td>" +
                                 "<td>" + obj.data[song].title  + "</td>" +
                                 "<td>" + minutes + ":" + (seconds < 10 ? '0' : '') + seconds +
                         "</td><td></td></tr>");
@@ -361,7 +361,7 @@ function webSocketConnect() {
                                 if (typeof obj.data[item].artist === 'undefined') {
                                     var details = "<td colspan=\"2\">" + obj.data[item].title + "</td>";
                                 } else {
-                                    var details = "<td>" + obj.data[item].artist + "<br /><span>" + obj.data[item].album + "</span></td><td>" + obj.data[item].title + "</td>";
+                                    var details = "<td>" + obj.data[item].artist + "<span>" + obj.data[item].album + "</span></td><td>" + obj.data[item].title + "</td>";
                                 }
 
                                $('#salamisandwich > tbody').append(