diff --git a/www/css/cytube.css b/www/css/cytube.css index b816a849..2d7585cf 100644 --- a/www/css/cytube.css +++ b/www/css/cytube.css @@ -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 { diff --git a/www/js/util.js b/www/js/util.js index 08afc6e0..20fda2f7 100644 --- a/www/js/util.js +++ b/www/js/util.js @@ -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