summaryrefslogtreecommitdiffstats
path: root/assets
diff options
context:
space:
mode:
Diffstat (limited to 'assets')
-rw-r--r--assets/css/player.css4
-rw-r--r--assets/js/watch.js2
2 files changed, 6 insertions, 0 deletions
diff --git a/assets/css/player.css b/assets/css/player.css
index 656fb48c..120fd2f8 100644
--- a/assets/css/player.css
+++ b/assets/css/player.css
@@ -218,6 +218,10 @@ video.video-js {
#player-container {
position: relative;
+ padding-left: 0;
+ padding-right: 0;
+ margin-left: 1em;
+ margin-right: 1em;
padding-bottom: 82vh;
height: 0;
}
diff --git a/assets/js/watch.js b/assets/js/watch.js
index 3909edd4..1579abf4 100644
--- a/assets/js/watch.js
+++ b/assets/js/watch.js
@@ -149,6 +149,8 @@ function get_playlist(plid, retries) {
if (xhr.readyState == 4) {
if (xhr.status == 200) {
playlist.innerHTML = xhr.response.playlistHtml;
+ var nextVideo = document.getElementById(xhr.response.nextVideo);
+ nextVideo.parentNode.parentNode.scrollTop = nextVideo.offsetTop;
if (xhr.response.nextVideo) {
player.on('ended', function () {