diff --git a/renderer/renderer.go b/renderer/renderer.go index cabf92d..8009d99 100644 --- a/renderer/renderer.go +++ b/renderer/renderer.go @@ -79,7 +79,7 @@ func (r *renderer) RenderAboutPage(ctx context.Context, writer io.Writer, data * func EmojiFilter(content string, emojis []mastodon.Emoji) string { var replacements []string for _, e := range emojis { - replacements = append(replacements, ":"+e.ShortCode+":", "") + replacements = append(replacements, ":"+e.ShortCode+":", "") } return strings.NewReplacer(replacements...).Replace(content) } @@ -90,7 +90,7 @@ func StatusContentFilter(spoiler string, content string, emojis []mastodon.Emoji } var replacements []string for _, e := range emojis { - replacements = append(replacements, ":"+e.ShortCode+":", "") + replacements = append(replacements, ":"+e.ShortCode+":", "") } for _, m := range mentions { replacements = append(replacements, "\""+m.URL+"\"", "\"/user/"+m.ID+"\"") diff --git a/static/main.css b/static/main.css index e37cef4..89bb9cd 100644 --- a/static/main.css +++ b/static/main.css @@ -21,11 +21,15 @@ margin: 0px; } +.status-profile-img-container { + margin-right: 8px; +} + .status-profile-img { height: 48px; width: 48px; - margin-right: 8px; object-fit: contain; + vertical-align: top; } .status { @@ -111,6 +115,10 @@ margin: 8px 0; } +.post-form>div { + margin-bottom: 4px; +} + .signin-form { margin: 8px 0; } @@ -127,7 +135,7 @@ height: 24px; width: 24px; margin-bottom: -8px; - margin-right: 0px; + vertical-align: baseline; } .retweet-info .status-dname{ @@ -248,7 +256,7 @@ } .status-visibility { - margin: 0 4px; + margin-left: 4px; display: inline-block; color: #444444; } @@ -257,3 +265,19 @@ font-size: 9pt; vertical-align: bottom; } + +.remote-link { + margin-left: 4px; + display: inline-block; + color: #444444; + text-decoration: none; +} + +.remote-link span { + font-size: 9pt; + vertical-align: bottom; +} + +.img-link { + display: inline-block; +} diff --git a/templates/notification.tmpl b/templates/notification.tmpl index 271597b..e46ce8a 100644 --- a/templates/notification.tmpl +++ b/templates/notification.tmpl @@ -6,9 +6,11 @@