Skip to content
Snippets Groups Projects
Commit de1950fe authored by gnaegi's avatar gnaegi
Browse files

OO-1713 fix video display issue on course info page

parent 956d8c85
No related branches found
No related tags found
No related merge requests found
......@@ -92,7 +92,7 @@ public class ImageRenderer extends DefaultComponentRenderer {
sb.append("<div id='").append(compId).append("' class='o_video'>"); // START component
// The inner component
String imgId = "mov_" + ic.getDispatchID();
sb.append("<div id='").append(imgId).append("' name='").append(imgId).append("'></div>")
sb.append("<div id='").append(imgId).append("' name='").append(imgId).append("' style='width:").append(width).append("px; height:").append(height).append("px;' class='o_video_wrapper'></div>")
.append("<script type='text/javascript'>")
.append("/* <![CDATA[ */")
.append("BPlayer.insertPlayer('").append(Settings.createServerURI()).append(mapperUrl);
......
......@@ -14,7 +14,7 @@
</div>
#end
#if($r.available("thumbnail"))
<div class="o_media">
<div class="o_media #if(!$description || $description.length() == 0) o_desc_empty"#end ">
$r.render("thumbnail")
</div>
#end
......
......@@ -182,11 +182,13 @@
}
/* media classes for video and image component */
.o_video, %o_video {
.o_video, .o_video video, %o_video, .o_video_wrapper {
@include img-responsive(inline-block);
max-width: 100%;
}
.o_image, %o_image {
.o_image, .o_image img, %o_image {
@include img-responsive(inline-block);
max-width: 100%;
}
/* Hyphenated text */
......
......@@ -15,7 +15,14 @@
float: right;
margin-left: 2em;
margin-bottom: 2em;
}
/* reset when no description is there to render left aligned */
&.o_desc_empty {
float: none;
margin-left: 0;
margin-bottom: 0;
}
}
h1 i {
display: none;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment