mirror of
https://github.com/iv-org/invidious.git
synced 2024-12-15 14:50:33 +05:30
Community: Fix position of the "creator heart" (broken by #3783)
This commit is contained in:
parent
e238c08be5
commit
6440ae0b5c
@ -46,6 +46,7 @@ body a.channel-owner {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.creator-heart {
|
.creator-heart {
|
||||||
|
display: inline-block;
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 16px;
|
width: 16px;
|
||||||
height: 16px;
|
height: 16px;
|
||||||
@ -66,6 +67,7 @@ body a.channel-owner {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.creator-heart-small-container {
|
.creator-heart-small-container {
|
||||||
|
display: block;
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 13px;
|
width: 13px;
|
||||||
height: 13px;
|
height: 13px;
|
||||||
|
@ -409,7 +409,6 @@ def template_youtube_comments(comments, locale, thin_mode, is_replies = false)
|
|||||||
|
|
||||||
html << <<-END_HTML
|
html << <<-END_HTML
|
||||||
<i class="icon ion-ios-thumbs-up"></i> #{number_with_separator(child["likeCount"])}
|
<i class="icon ion-ios-thumbs-up"></i> #{number_with_separator(child["likeCount"])}
|
||||||
</p>
|
|
||||||
END_HTML
|
END_HTML
|
||||||
|
|
||||||
if child["creatorHeart"]?
|
if child["creatorHeart"]?
|
||||||
@ -420,13 +419,14 @@ def template_youtube_comments(comments, locale, thin_mode, is_replies = false)
|
|||||||
end
|
end
|
||||||
|
|
||||||
html << <<-END_HTML
|
html << <<-END_HTML
|
||||||
|
|
||||||
<span class="creator-heart-container" title="#{translate(locale, "`x` marked it with a ❤", child["creatorHeart"]["creatorName"].as_s)}">
|
<span class="creator-heart-container" title="#{translate(locale, "`x` marked it with a ❤", child["creatorHeart"]["creatorName"].as_s)}">
|
||||||
<div class="creator-heart">
|
<span class="creator-heart">
|
||||||
<img loading="lazy" class="creator-heart-background-hearted" src="#{creator_thumbnail}" alt="" />
|
<img loading="lazy" class="creator-heart-background-hearted" src="#{creator_thumbnail}" alt="" />
|
||||||
<div class="creator-heart-small-hearted">
|
<span class="creator-heart-small-hearted">
|
||||||
<div class="icon ion-ios-heart creator-heart-small-container"></div>
|
<span class="icon ion-ios-heart creator-heart-small-container"></span>
|
||||||
</div>
|
</span>
|
||||||
</div>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
END_HTML
|
END_HTML
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user