Skip to content

Commit d31fc66

Browse files
committed
Rendering Video Tweet Link
1 parent c4b0f2b commit d31fc66

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

mathilda_painting.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -607,9 +607,9 @@ function mathilda_tweet_paint($date,$tweet,$id,$me,$image,$mention,$url,$hashtag
607607
$video_extendedurl=$tweet_image[6];
608608
$is_video_url = strpos($video_extendedurl, 'video');
609609
if($is_video_url!==false) {
610-
$mathilda_content.='<span style="position:relative;top:7px;padding-left:50px;">';
610+
$mathilda_content.='<div class="mathilda-tweet-video-link">';
611611
$mathilda_content.='Video: <a href="'.$tweet_image[6].'">'.$tweet_image[6].'</a>';
612-
$mathilda_content.="</span>";
612+
$mathilda_content.="</div>";
613613
$mathilda_content.="&nbsp;<br/>";
614614
}
615615

mathilda_tweets.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
.mathilda-tweet-image
2222
{padding-left:50px;}
2323

24+
.mathilda-tweet-video-link
25+
{position:relative;top:7px;padding-left:50px;}
26+
2427
.mathilda-url-follows
2528
{margin-bottom:0px;}
2629

0 commit comments

Comments
 (0)