From: Andrew Karpow Date: Sun, 19 Jan 2014 01:08:56 +0000 (+0100) Subject: responsive buttons X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=f4a1efdd8889427cba209ca0f411c790d409ec66;p=ympd.git responsive buttons --- diff --git a/htdocs/css/mpd.css b/htdocs/css/mpd.css index ae19e13..ee1f809 100644 --- a/htdocs/css/mpd.css +++ b/htdocs/css/mpd.css @@ -43,6 +43,14 @@ body { border-color: #adadad; } +@media (max-width: 1199px) { +#btn-responsive-block > .btn { + padding: 6px 12px; + font-size: 14px; + border-radius: 4px; + } +} + #salamisandwich td:nth-child(3), th:nth-child(3) { text-align: right; } diff --git a/htdocs/index.html b/htdocs/index.html index 57e5835..8f40d8f 100644 --- a/htdocs/index.html +++ b/htdocs/index.html @@ -129,7 +129,7 @@ -
+
@@ -138,12 +138,11 @@
-
- -
- +
+ +
diff --git a/src/http_server.c b/src/http_server.c index 27ac414..3b7e6c6 100644 --- a/src/http_server.c +++ b/src/http_server.c @@ -147,7 +147,7 @@ int callback_http(struct libwebsocket_context *context, LIBMPDCLIENT_PATCH_VERSION); /* Copy size to content-length field */ - sprintf(buf, "%6lu", response_size); + sprintf(buf, "%6zu", response_size); memcpy(p + sizeof(http_header) - 11, buf, 6); n = libwebsocket_write(wsi, (unsigned char *)p,