diff --git a/contrib/ympd.freebsd b/contrib/ympd.freebsd index 4dcbedd..532a90c 100755 --- a/contrib/ympd.freebsd +++ b/contrib/ympd.freebsd @@ -12,18 +12,17 @@ name="ympd" rcvar="${name}_enable" -command="/usr/local/bin/ympd" +command="/usr/local/bin/${name}" pidfile="/var/run/${name}.pid" start_cmd="ympd_start" -load_rc_config "$name" +load_rc_config "${name}" : ${ympd_enable:="NO"} -: ${ympd_user:="nobody"} ympd_start() { check_startmsgs && echo "Starting ${name}." - /usr/sbin/daemon -f -p "${pidfile}" -t "${name}" -u "${ympd_user}" "${command}" + /usr/sbin/daemon -f -p "${pidfile}" "${command}" "${rc_flags}" } run_rc_command "$1" diff --git a/htdocs/css/mpd.css b/htdocs/css/mpd.css index 85401cb..ea64fc8 100644 --- a/htdocs/css/mpd.css +++ b/htdocs/css/mpd.css @@ -27,11 +27,18 @@ button { margin-top: 2px; } +#breadcrump { + display: block; + + overflow: auto; + white-space: nowrap; +} + #counter { - font-size: 24px; - margin-top: -6px; - margin-left: 10px; - min-width: 50px; + font-size: 24px; + margin-top: -6px; + margin-left: 10px; + min-width: 50px; } #search { @@ -39,7 +46,7 @@ button { } .btn-group-hover { - opacity: 20%; + opacity: 20%; } .btn:active, @@ -61,8 +68,51 @@ button { } } -#salamisandwich td:nth-child(3), th:nth-child(3) { +h1 { + display: block; + + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +td:nth-child(4), th:nth-child(4) { + /* This *has* to be placed before + any t[dh]:nth-last-child(2) for + the override to work. */ + min-width: 50%; +} + +td:nth-last-child(2), th:nth-last-child(2) { text-align: right; + width: 4em; +} + +#salamisandwich td:nth-child(4) span { + font-style: italic; + font-size: 90%; + + display: block; +} + +td:nth-child(2), td:nth-child(3) { + min-width: 25%; + max-width: 10em; + + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +@media only screen and (max-width: 600px) { + td:nth-child(2), td:nth-child(3) { + min-width: 0; + max-width: 0; + } + td:nth-child(4), th:nth-child(4) { + min-width: 10%; + white-space: normal; + } } tbody { @@ -78,7 +128,7 @@ td:last-child, td:first-child { z-index: 9999; } -/* Positioning */ +/* Positioning */ .notifications.top-right { right: 10px; top: 60px; @@ -94,3 +144,9 @@ td:last-child, td:first-child { button { overflow: hidden; } + +#trashmode span:last-child { + display:inline-block; + text-align:left; + width:2.8em; +} diff --git a/htdocs/index.html b/htdocs/index.html index 1b1bad1..608ca1f 100644 --- a/htdocs/index.html +++ b/htdocs/index.html @@ -93,18 +93,19 @@
- +
-
Queue
+
Queue +

- - + +

  

@@ -126,10 +127,10 @@ # - Title - Album Artist - Duration + Album + Title + Length @@ -166,7 +167,7 @@
-
+
- Save queue + Save Queue
-
- -
@@ -238,6 +234,19 @@
Mongoose GPLv2
libMPDClient BSD License

+
+
+ +
+
+ +
+
+
@@ -256,7 +265,7 @@
-
@@ -301,7 +310,7 @@ - +