From 1b5c6f619ef0d796c1cd35e15770f5ca36b9e18a Mon Sep 17 00:00:00 2001 From: Ryan Stafford Date: Sat, 8 Jul 2023 10:44:09 -0400 Subject: [PATCH] fix post links in inbox. fixes #21 --- public/style.css | 5 +++++ templates/activities.html | 2 +- templates/frontpage.html | 2 +- templates/main.html | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/public/style.css b/public/style.css index 793ad0e..b8c8820 100644 --- a/public/style.css +++ b/public/style.css @@ -162,6 +162,9 @@ summary { .message b { color: #000; } +.dark .message b { + color: #ddd; +} .dark .meta { color: #b4b4b4; } @@ -544,6 +547,7 @@ form.nsfw div { text-align: right; } .side { + display: none; margin: 0 auto; font-size: 12px; width: 300px; @@ -558,6 +562,7 @@ main { } @media (min-width: 900px) { .side { + display: block; position: absolute; top: 0; right: 0; diff --git a/templates/activities.html b/templates/activities.html index f05c5a4..6d57d09 100644 --- a/templates/activities.html +++ b/templates/activities.html @@ -6,7 +6,7 @@ {{ if not $state.User }} comment on {{ end }} - {{ $activity.Comment.P.Post.Name}} + {{ $activity.Comment.P.Post.Name}} {{ if $state.User}} by {{$state.User.PersonView.Person.Name }} diff --git a/templates/frontpage.html b/templates/frontpage.html index 9f2b11d..76154ac 100644 --- a/templates/frontpage.html +++ b/templates/frontpage.html @@ -2,7 +2,7 @@ {{ if and .Community (ne .Community.CommunityView.Community.Title "")}}{{.Community.CommunityView.Community.Title}}{{else if ne .CommunityName ""}}/c/{{.CommunityName}}{{ else if .User}}overview for {{.User.PersonView.Person.Name}}{{else}}{{ host .Host }}{{end}} - + diff --git a/templates/main.html b/templates/main.html index 6a2d50a..7caa5bf 100644 --- a/templates/main.html +++ b/templates/main.html @@ -3,7 +3,7 @@ {{if and .Posts .PostID }}{{ (index .Posts 0).Post.Name}} : {{.CommunityName}}{{else if and .Community (ne .Community.CommunityView.Community.Title "")}}{{.Community.CommunityView.Community.Title}}{{else if ne .CommunityName ""}}/c/{{.CommunityName}}{{ else if .User}}overview for {{.User.PersonView.Person.Name}}{{else}}{{ host .Host }}{{end}} - +