From d0fff3f4c82f227f742a4a86740daca0abb2d5ec Mon Sep 17 00:00:00 2001 From: gnaegi <none@none> Date: Thu, 19 May 2016 15:32:10 +0200 Subject: [PATCH] OO-725 fix overlapping peekview previews --- .../java/org/olat/course/nodes/video/_content/peekview.html | 4 +++- src/main/webapp/static/themes/light/modules/_video.scss | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/olat/course/nodes/video/_content/peekview.html b/src/main/java/org/olat/course/nodes/video/_content/peekview.html index cdb432b9a8b..1f927f03f47 100644 --- a/src/main/java/org/olat/course/nodes/video/_content/peekview.html +++ b/src/main/java/org/olat/course/nodes/video/_content/peekview.html @@ -1,2 +1,4 @@ +<div class="o_video_peekview"> + <div class="o_video_poster" style="background-image: url('$mediaUrl/poster.jpg');"></div> +</div> - <img src="$mediaUrl/poster.jpg" alt="poster" /> diff --git a/src/main/webapp/static/themes/light/modules/_video.scss b/src/main/webapp/static/themes/light/modules/_video.scss index 89b34f6cc2c..0dee1867c41 100644 --- a/src/main/webapp/static/themes/light/modules/_video.scss +++ b/src/main/webapp/static/themes/light/modules/_video.scss @@ -41,6 +41,10 @@ } } +.o_video_peekview { + text-align: center; +} + .o_video_listing { margin-right: -10px; -- GitLab