No inline-CSS in elements.
这个提交包含在:
父节点
2ab93b2bdc
当前提交
011c2af97f
|
@ -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");
|
||||
|
|
正在加载...
在新工单中引用