Switch queue's line break before album from HTML to CSS.

This commit is contained in:
eb041592 2018-04-04 19:44:08 +02:00
parent 0faf70ad05
commit 84b3ea71a4
2 changed files with 6 additions and 4 deletions

View 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 {

View 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(