fix main post links

This commit is contained in:
teddit 2021-02-06 20:35:28 +01:00
parent 4c03933318
commit c9b2d1b3a7
2 changed files with 28 additions and 22 deletions

View File

@ -675,6 +675,9 @@ footer a {
#post .info .links a { #post .info .links a {
font-size: var(--sm-font); font-size: var(--sm-font);
} }
#post .info .links a {
float: initial;
}
#post header { #post header {
padding-top: 0; padding-top: 0;
} }
@ -713,6 +716,9 @@ footer a {
font-size: small; font-size: small;
color: #686868; color: #686868;
} }
#post .submitted a {
float: initial;
}
#post .submitted a, #post .submitted a,
#post .submitted span { #post .submitted span {
margin-left: 5px; margin-left: 5px;

View File

@ -34,28 +34,28 @@ html
h2 #{cleanTitle(post.title)} h2 #{cleanTitle(post.title)}
!= post.link_flair != post.link_flair
span(class="domain") (#{post.domain}) span(class="domain") (#{post.domain})
p.submitted p.submitted
span(title="" + toUTCString(post.created) + "") submitted #{timeDifference(post.created)} by span(title="" + toUTCString(post.created) + "") submitted #{timeDifference(post.created)} by
if post.author === '[deleted]' if post.author === '[deleted]'
span [deleted] span [deleted]
else else
a(href="/u/" + post.author + "") a(href="/u/" + post.author + "")
| #{post.author} | #{post.author}
!= post.user_flair != post.user_flair
.links .links
if post.over_18 if post.over_18
span.tag.nsfw NSFW span.tag.nsfw NSFW
- -
let back_url = "/r/" + subreddit + "/comments/" + post.id let back_url = "/r/" + subreddit + "/comments/" + post.id
let saved_post = false let saved_post = false
if user_preferences.saved if user_preferences.saved
each post_id in user_preferences.saved each post_id in user_preferences.saved
if post_id === post.id if post_id === post.id
- saved_post = true - saved_post = true
if saved_post if saved_post
a(href="/unsave/" + post.id + "/?rk=" + redis_key + "&b=" + back_url + "") unsave a(href="/unsave/" + post.id + "/?rk=" + redis_key + "&b=" + back_url + "") unsave
else else
a(href="/save/" + post.id + "/?rk=" + redis_key + "&b=" + back_url + "") save a(href="/save/" + post.id + "/?rk=" + redis_key + "&b=" + back_url + "") save
if post.crosspost.is_crosspost === true if post.crosspost.is_crosspost === true
.crosspost .crosspost
.title .title