Browse Source

Fix header size issues on userpage/notifications

merge-requests/70/head
Deimos 6 years ago
parent
commit
de6822d25a
  1. 10
      tildes/scss/modules/_heading.scss
  2. 14
      tildes/scss/modules/_post.scss
  3. 6
      tildes/tildes/templates/notifications_unread.jinja2
  4. 2
      tildes/tildes/templates/user.jinja2

10
tildes/scss/modules/_heading.scss

@ -4,3 +4,13 @@
.heading-main {
font-weight: bold;
}
.heading-post-listing {
font-size: 0.6rem;
}
.heading-notification {
font-size: 0.8rem;
line-height: 0.8rem;
margin-bottom: 0;
}

14
tildes/scss/modules/_post.scss

@ -2,10 +2,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
.post-listing {
h2 {
font-size: 0.6rem;
}
& > li {
margin-bottom: 1rem;
}
@ -16,14 +12,8 @@
}
.post-listing-notifications {
h2 {
font-size: 0.8rem;
line-height: 0.8rem;
margin-bottom: 0;
}
h2 + article {
margin-top: 0.4rem;
.comment {
margin-bottom: 0.4rem;
}
.btn-link-minimal {

6
tildes/tildes/templates/notifications_unread.jinja2

@ -29,11 +29,11 @@
{% for notification in notifications: %}
<li>
{% if notification.is_comment_reply %}
<h2>Reply to your comment on <a href="{{ notification.comment.topic.permalink }}">{{ notification.comment.topic.title }}</a> in {{ group_linked(notification.comment.topic.group.path) }}</h2>
<h2 class="heading-notification">Reply to your comment on <a href="{{ notification.comment.topic.permalink }}">{{ notification.comment.topic.title }}</a> in {{ group_linked(notification.comment.topic.group.path) }}</h2>
{% elif notification.is_topic_reply %}
<h2>Reply to your topic <a href="{{ notification.comment.topic.permalink }}">{{ notification.comment.topic.title }}</a> in {{ group_linked(notification.comment.topic.group.path) }}</h2>
<h2 class="heading-notification">Reply to your topic <a href="{{ notification.comment.topic.permalink }}">{{ notification.comment.topic.title }}</a> in {{ group_linked(notification.comment.topic.group.path) }}</h2>
{% elif notification.is_mention %}
<h2>
<h2 class="heading-notification">
You were mentioned in a comment on <a href="{{ notification.comment.topic.permalink }}">{{ notification.comment.topic.title }}</a> in {{ group_linked(notification.comment.topic.group.path) }}
</h2>
{% endif %}

2
tildes/tildes/templates/user.jinja2

@ -102,7 +102,7 @@
{% if post is topic %}
{{ render_topic_for_listing(post, show_group=True) }}
{% elif post is comment %}
<h2>Comment on <a href="{{ post.topic.permalink }}">
<h2 class="heading-post-listing">Comment on <a href="{{ post.topic.permalink }}">
{% if post.topic.is_deleted and not post.topic.title %}
&lt;deleted topic&gt;
{% else %}

Loading…
Cancel
Save