Make jump to comment work from user's page and make last <p> in the post and comment bodies get the margin above it like the others (#219)

* Make last <p> in post body get padding above it

* When going to a comment from a user's page jump to it on page load
This commit is contained in:
Butter Cat 2024-09-27 00:44:32 -04:00 committed by GitHub
parent 6e2e679a0e
commit fe4fed0504
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -1731,7 +1731,7 @@ input[type="submit"] {
width: 100%;
}
.md > p:not(:first-child):not(:last-child) {
.md > p:not(:first-child) {
margin-top: 20px;
}

View File

@ -61,7 +61,7 @@ body %}
<summary class="comment_data">
<a
class="comment_link"
href="{{ post.permalink }}"
href="{{ post.permalink }}#{{ post.id }}"
title="{{ post.link_title }}"
>{{ post.link_title }}</a
>