1
0
mirror of https://github.com/SuperBFG7/ympd synced 2024-11-22 21:07:18 +00:00

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; 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) { #salamisandwich td:nth-child(3), th:nth-child(3) {
text-align: right; text-align: right;
} }

View File

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

View File

@ -147,7 +147,7 @@ int callback_http(struct libwebsocket_context *context,
LIBMPDCLIENT_PATCH_VERSION); LIBMPDCLIENT_PATCH_VERSION);
/* Copy size to content-length field */ /* Copy size to content-length field */
sprintf(buf, "%6lu", response_size); sprintf(buf, "%6zu", response_size);
memcpy(p + sizeof(http_header) - 11, buf, 6); memcpy(p + sizeof(http_header) - 11, buf, 6);
n = libwebsocket_write(wsi, (unsigned char *)p, n = libwebsocket_write(wsi, (unsigned char *)p,