diff options
author | r <r@freesoftwareextremist.com> | 2020-09-22 04:21:39 +0000 |
---|---|---|
committer | r <r@freesoftwareextremist.com> | 2020-09-22 04:21:39 +0000 |
commit | 79d4ff4b08f249ce69ed4291d937a50165ed0b86 (patch) | |
tree | d6dfa551aaccf73d92f2424908f8d4bf1a48a47b /renderer | |
parent | 7a59d010f6d07bcfb074e60f1f06b002c4bf7b74 (diff) | |
download | bloat-79d4ff4b08f249ce69ed4291d937a50165ed0b86.tar.gz bloat-79d4ff4b08f249ce69ed4291d937a50165ed0b86.zip |
Update CSS
Now it's mostly CSS 2.1 compliant. All the images now use the height
attribute to limit the size on browsers that don't support CSS.
Diffstat (limited to 'renderer')
-rw-r--r-- | renderer/renderer.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/renderer/renderer.go b/renderer/renderer.go index a15bebf..560e9b7 100644 --- a/renderer/renderer.go +++ b/renderer/renderer.go @@ -41,7 +41,7 @@ func emojiFilter(content string, emojis []mastodon.Emoji) string { var replacements []string var r string for _, e := range emojis { - r = fmt.Sprintf("<img class=\"emoji\" src=\"%s\" alt=\":%s:\" title=\":%s:\" />", + r = fmt.Sprintf("<img class=\"emoji\" src=\"%s\" alt=\":%s:\" title=\":%s:\" height=\"24\" />", e.URL, e.ShortCode, e.ShortCode) replacements = append(replacements, ":"+e.ShortCode+":", r) } @@ -57,7 +57,7 @@ func statusContentFilter(spoiler string, content string, content = spoiler + "<br />" + content } for _, e := range emojis { - r = fmt.Sprintf("<img class=\"emoji\" src=\"%s\" alt=\":%s:\" title=\":%s:\" />", + r = fmt.Sprintf("<img class=\"emoji\" src=\"%s\" alt=\":%s:\" title=\":%s:\" height=\"32\" />", e.URL, e.ShortCode, e.ShortCode) replacements = append(replacements, ":"+e.ShortCode+":", r) } |