Minor fixes

This commit is contained in:
calzoneman 2014-02-28 00:34:50 -06:00
parent 96cfe0070d
commit 0f4c29952f
2 changed files with 4 additions and 3 deletions

View file

@ -46,7 +46,7 @@
#chatheader, #currenttitle {
border: 1px solid #cccccc;
border-bottom: 0;
border-bottom-width: 0;
border-radius: 5px;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
@ -361,6 +361,7 @@ li.ui-sortable-helper, li.ui-sortable-placeholder + li.queue_entry {
padding: 5px;
max-width: 200px;
max-height: 300px;
overflow-y: hidden;
}
.user-dropdown {

View file

@ -891,7 +891,6 @@ function handlePermissionChange() {
setVisible("#chatline", CLIENT.rank >= 0);
setVisible("#queue", hasPermission("seeplaylist"));
setVisible("#plmeta", hasPermission("seeplaylist"));
resizeStuff();
$("#getplaylist").attr("disabled", !hasPermission("seeplaylist"));
setVisible("#showmediaurl", hasPermission("playlistadd"));
@ -975,6 +974,7 @@ function handlePermissionChange() {
$("#chatline").attr("disabled", !hasPermission("chat"));
rebuildPlaylist();
resizeStuff();
}
function fixWeirdButtonAlignmentIssue() {
@ -1518,7 +1518,7 @@ function resizeStuff() {
return;
}
VWIDTH = $("#videowrap").width() + "";
VHEIGHT = Math.floor(parseInt(VWIDTH) * 9 / 16) + "";
VHEIGHT = Math.floor(parseInt(VWIDTH) * 9 / 16 + 1) + "";
$("#ytapiplayer").width(VWIDTH).height(VHEIGHT);
// Only execute if we are on a fluid layout