notes: match twemoji size with font size

This commit is contained in:
HookedBehemoth 2022-06-29 15:13:50 +02:00
parent 6216db3f18
commit e6d75af6dc
2 changed files with 6 additions and 1 deletions

View File

@ -41,6 +41,11 @@
}
}
img.twemoji {
width: 18px;
height: 18px;
}
li {
line-height: 2em;
}

View File

@ -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"