From 84b3ea71a4075aa67e7d715493e1d12ef5b84a36 Mon Sep 17 00:00:00 2001 From: eb041592 <35889760+eb041592@users.noreply.github.com> Date: Wed, 4 Apr 2018 19:44:08 +0200 Subject: [PATCH] Switch queue's line break before album from HTML to CSS. --- htdocs/css/mpd.css | 6 ++++-- htdocs/js/mpd.js | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) 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( -- 2.20.1