Merge pull request #3152 from rabuzarus/20170208_-_fix_oembed_video_floating

Bugfix: for "embedded videos are cut off" #2987
This commit is contained in:
Tobias Diekershoff 2017-02-08 06:33:44 +01:00 committed by GitHub
commit 3adbbd6689
2 changed files with 5 additions and 1 deletions

View file

@ -117,6 +117,10 @@ span.connector {
position: relative;
}
.embed_video.active {
float: none;
}
.embed_rich {
display: block;
transition: height .75s;

View file

@ -1,4 +1,4 @@
<a class="embed_video" href='{{$embedurl}}' onclick='this.innerHTML=Base64.decode("{{$escapedhtml}}"); return false;'>
<a class="embed_video" href='{{$embedurl}}' onclick='this.innerHTML=Base64.decode("{{$escapedhtml}}"); this.classList.add("active"); return false;'>
<img width='{{$tw}}' height='{{$th}}' src='{{$turl}}' >
<div style='width: {{$tw}}px; height: {{$th}}px;'></div>
</a>