From: eb041592 <35889760+eb041592@users.noreply.github.com> Date: Wed, 4 Apr 2018 17:44:08 +0000 (+0200) Subject: Switch queue's line break before album from HTML to CSS. X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=84b3ea71a4075aa67e7d715493e1d12ef5b84a36;p=ympd.git Switch queue's line break before album from HTML to CSS. --- diff --git a/htdocs/css/mpd.css b/htdocs/css/mpd.css index 8931c92..6579fcc 100644 --- a/htdocs/css/mpd.css +++ b/htdocs/css/mpd.css @@ -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 { diff --git a/htdocs/js/mpd.js b/htdocs/js/mpd.js index 5112874..a79affa 100644 --- a/htdocs/js/mpd.js +++ b/htdocs/js/mpd.js @@ -241,7 +241,7 @@ function webSocketConnect() { $('#salamisandwich > tbody').append( "" + (obj.data[song].pos + 1) + "" + - "" + obj.data[song].artist + "
" + obj.data[song].album + "" + + "" + obj.data[song].artist + "" + obj.data[song].album + "" + "" + obj.data[song].title + "" + "" + minutes + ":" + (seconds < 10 ? '0' : '') + seconds + ""); @@ -361,7 +361,7 @@ function webSocketConnect() { if (typeof obj.data[item].artist === 'undefined') { var details = "" + obj.data[item].title + ""; } else { - var details = "" + obj.data[item].artist + "
" + obj.data[item].album + "" + obj.data[item].title + ""; + var details = "" + obj.data[item].artist + "" + obj.data[item].album + "" + obj.data[item].title + ""; } $('#salamisandwich > tbody').append(