mirror of https://github.com/zedeus/nitter
notes: match twemoji size with font size
This commit is contained in:
parent
5bcce76bd5
commit
fd1ad96a86
|
@ -41,6 +41,11 @@
|
|||
}
|
||||
}
|
||||
|
||||
img.twemoji {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
}
|
||||
|
||||
li {
|
||||
line-height: 2em;
|
||||
}
|
||||
|
|
|
@ -70,7 +70,7 @@ proc renderNoteParagraph(articleParagraph: ArticleParagraph; article: Article):
|
|||
result.add image
|
||||
of ArticleEntityType.twemoji:
|
||||
let url = entity.twemoji.getSmallPic
|
||||
let emoji = buildHtml(img(src=url, alt=""))
|
||||
let emoji = buildHtml(img(class="twemoji", src=url, alt=""))
|
||||
result.add emoji
|
||||
of ArticleEntityType.tweet:
|
||||
let url = fmt"/i/status/{entity.tweetId}/embed"
|
||||
|
|
Loading…
Reference in New Issue