From 33240b7fd92c6661049e1ee18260540d8fc26f0a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 7 Dec 2018 23:20:19 +0300 Subject: various layout fixes related to inline player causing unnecessary left padding if shorten_expanded is enabled --- include/controls.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'include/controls.php') diff --git a/include/controls.php b/include/controls.php index 037e331cc..e64a90a8b 100755 --- a/include/controls.php +++ b/include/controls.php @@ -286,18 +286,22 @@ function format_inline_player($url, $ctype) { if (strpos($ctype, "audio/") === 0) { + $entry .= "
"; + if ($_SESSION["hasAudio"] && (strpos($ctype, "ogg") !== false || $_SESSION["hasMp3"])) { $entry .= ""; + "; } - if ($entry) $entry .= "  " . basename($url) . ""; + $entry .= "
"; + return $entry; } -- cgit v1.2.3