From 0f4c29952fbe9997e0fb775945efead28ebebe4b Mon Sep 17 00:00:00 2001 From: calzoneman Date: Fri, 28 Feb 2014 00:34:50 -0600 Subject: [PATCH] Minor fixes --- www/css/cytube.css | 3 ++- www/js/util.js | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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