No inline-CSS in elements.

This commit is contained in:
tastytea 2019-11-02 07:52:48 +01:00
부모 2ab93b2bdc
커밋 011c2af97f
로그인 계정: tastytea
GPG 키 ID: CFC39497F1B26E07
2개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제

파일 보기

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

파일 보기

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