responsive buttons

This commit is contained in:
Andrew Karpow 2014-01-19 02:08:56 +01:00
parent 2513d26eec
commit f4a1efdd88
3 changed files with 15 additions and 8 deletions

View File

@ -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;
}

View File

@ -129,7 +129,7 @@
</button>
</div>
<div class="btn-group-vertical btn-block btn-group-lg">
<div id="btn-responsive-block" class="btn-group-vertical btn-block btn-group-lg">
<button type="button" class="btn btn-default" onclick="updateDB();">
<span class="glyphicon glyphicon-refresh"></span> Update DB
</button>
@ -138,12 +138,11 @@
</button>
</div>
<div class="btn-group-vertical btn-block btn-group-lg" data-toggle="buttons">
<button type="button" class="btn btn-default" id="btnnotify">
<span class="glyphicon glyphicon-comment"></span> Notifications
</button>
</div>
<div id="btn-responsive-block" class="btn-group-vertical btn-block btn-group-lg" data-toggle="buttons">
<button type="button" class="btn btn-default" id="btnnotify">
<span class="glyphicon glyphicon-comment"></span> Notifications
</button>
</div>
</div>
</div><!-- /.col-md-2 -->
</div><!-- /.row -->

View File

@ -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,