1
0
Fork 0

No inline-CSS in elements.

Esse commit está contido em:
tastytea 2019-11-02 07:52:48 +01:00
commit 011c2af97f
Assinado por: tastytea
ID da chave GPG: CFC39497F1B26E07
2 arquivos alterados com 2 adições e 1 exclusões

Ver arquivo

@ -2,6 +2,7 @@
{{ $status_id := .Get "status_id" | default "" }}
{{ partial "mastodon-api-comments-scripts.html" . }}
<style type="text/css">.mastodon-api-comment-avatar,.mastodon-api-comment-emoji{height:1em;}</style>
<div id="mastodon-api-comments_{{ $status_id }}" class="mastodon-api-comments"></div>
<noscript><p>Comments only work with JavaScript enabled.</p></noscript>
<script type="application/javascript">

Ver arquivo

@ -48,7 +48,7 @@ function write_comments(root, data)
{
content = content.replace(
':' + emoji.shortcode + ':',
'<img style="height: 1em;" src="' + emoji.url + '">');
'<img class="mastodon-api-comment-emoji" src="' + emoji.url + '">');
}
const div = document.createElement("div");