]> git.mxchange.org Git - friendica.git/commitdiff
fix oembeded video floating
authorrabuzarus <>
Wed, 8 Feb 2017 01:18:42 +0000 (02:18 +0100)
committerrabuzarus <>
Wed, 8 Feb 2017 01:18:42 +0000 (02:18 +0100)
view/global.css
view/templates/oembed_video.tpl

index 4dd4cd57262efdfafb76c40d842b4dc937925ac6..3fb31a30cc15e7b54e15af75a31785b5134480fd 100644 (file)
@@ -117,6 +117,10 @@ span.connector {
   position: relative;
 }
 
+.embed_video.active {
+  float: none;
+}
+
 .embed_rich {
   display: block;
   transition: height .75s;
index 8392c469cdf7144009696efb7b3469f11d9481b8..8645fea674be9ed2852428c816778823aa0b8e3f 100644 (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>