Browse Source

fix oembeded video floating

pull/3152/head
rabuzarus 4 years ago
parent
commit
d27c8f4932
2 changed files with 5 additions and 1 deletions
  1. +4
    -0
      view/global.css
  2. +1
    -1
      view/templates/oembed_video.tpl

+ 4
- 0
view/global.css View File

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


+ 1
- 1
view/templates/oembed_video.tpl 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>

Loading…
Cancel
Save