From 8a3d1a0bf2db971ce6005855d78c073a12d147d4 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Tue, 23 Feb 2021 13:04:24 -0800 Subject: [PATCH] Fixes header wrap on mobile headers --- bookwyrm/templates/author.html | 2 +- bookwyrm/templates/book.html | 2 +- bookwyrm/templates/lists/list_layout.html | 2 +- bookwyrm/templates/lists/lists.html | 2 +- bookwyrm/templates/snippets/shelf.html | 2 ++ bookwyrm/templates/user/followers.html | 18 +++++++----------- bookwyrm/templates/user/following.html | 18 +++++++----------- bookwyrm/templates/user/lists.html | 2 +- bookwyrm/templates/user/shelf.html | 2 +- bookwyrm/templates/user/user.html | 4 ++-- 10 files changed, 24 insertions(+), 30 deletions(-) diff --git a/bookwyrm/templates/author.html b/bookwyrm/templates/author.html index a875ad78a..9f2054d0a 100644 --- a/bookwyrm/templates/author.html +++ b/bookwyrm/templates/author.html @@ -2,7 +2,7 @@ {% load bookwyrm_tags %} {% block content %}
-
+

{{ author.name }}

diff --git a/bookwyrm/templates/book.html b/bookwyrm/templates/book.html index 0bef2856b..3a2a6aa75 100644 --- a/bookwyrm/templates/book.html +++ b/bookwyrm/templates/book.html @@ -4,7 +4,7 @@ {% block content %}
-
+

{{ book.title }}{% if book.subtitle %}: diff --git a/bookwyrm/templates/lists/list_layout.html b/bookwyrm/templates/lists/list_layout.html index d3ff2c48d..f5855f272 100644 --- a/bookwyrm/templates/lists/list_layout.html +++ b/bookwyrm/templates/lists/list_layout.html @@ -2,7 +2,7 @@ {% load bookwyrm_tags %} {% block content %} -
+

{{ list.name }} {% include 'snippets/privacy-icons.html' with item=list %}

Created {% if list.curation != 'open' %} and curated{% endif %} by {% include 'snippets/username.html' with user=list.user %}

diff --git a/bookwyrm/templates/lists/lists.html b/bookwyrm/templates/lists/lists.html index 71d372509..259d08203 100644 --- a/bookwyrm/templates/lists/lists.html +++ b/bookwyrm/templates/lists/lists.html @@ -5,7 +5,7 @@

Lists

{% if request.user.is_authenticated and not lists.has_previous %} -
+

Your lists

diff --git a/bookwyrm/templates/snippets/shelf.html b/bookwyrm/templates/snippets/shelf.html index 006bb4ea7..0e4e9a08f 100644 --- a/bookwyrm/templates/snippets/shelf.html +++ b/bookwyrm/templates/snippets/shelf.html @@ -1,6 +1,7 @@ {% load humanize %} {% load bookwyrm_tags %} {% if books|length > 0 %} +
@@ -74,6 +75,7 @@ {% endfor %}
+
{% else %}

This shelf is empty.

{% if shelf.editable %} diff --git a/bookwyrm/templates/user/followers.html b/bookwyrm/templates/user/followers.html index 42b8cfb03..da6fc3208 100644 --- a/bookwyrm/templates/user/followers.html +++ b/bookwyrm/templates/user/followers.html @@ -15,17 +15,13 @@

Followers

{% for followers in followers %} -
-
-
- {% include 'snippets/avatar.html' with user=followers %} -
-
- {% include 'snippets/username.html' with user=followers show_full=True %} -
-
- {% include 'snippets/follow_button.html' with user=followers %} -
+
+
+ {% include 'snippets/avatar.html' with user=followers %} + {% include 'snippets/username.html' with user=followers show_full=True %} +
+
+ {% include 'snippets/follow_button.html' with user=followers %}
{% endfor %} diff --git a/bookwyrm/templates/user/following.html b/bookwyrm/templates/user/following.html index 9e42b783f..d734b0dcc 100644 --- a/bookwyrm/templates/user/following.html +++ b/bookwyrm/templates/user/following.html @@ -15,17 +15,13 @@

Following

{% for follower in user.following.all %} -
-
-
- {% include 'snippets/avatar.html' with user=follower %} -
-
- {% include 'snippets/username.html' with user=follower show_full=True %} -
-
- {% include 'snippets/follow_button.html' with user=follower %} -
+
+
+ {% include 'snippets/avatar.html' with user=follower %} + {% include 'snippets/username.html' with user=follower show_full=True %} +
+
+ {% include 'snippets/follow_button.html' with user=follower %}
{% endfor %} diff --git a/bookwyrm/templates/user/lists.html b/bookwyrm/templates/user/lists.html index a006c92b1..45e4806f2 100644 --- a/bookwyrm/templates/user/lists.html +++ b/bookwyrm/templates/user/lists.html @@ -1,7 +1,7 @@ {% extends 'user/user_layout.html' %} {% block header %} -
+

{% if is_self %}Your diff --git a/bookwyrm/templates/user/shelf.html b/bookwyrm/templates/user/shelf.html index 5e2f532f1..e62e22184 100644 --- a/bookwyrm/templates/user/shelf.html +++ b/bookwyrm/templates/user/shelf.html @@ -38,7 +38,7 @@ {% include 'user/create_shelf_form.html' with controls_text='create-shelf-form' %}

-
+

{{ shelf.name }} diff --git a/bookwyrm/templates/user/user.html b/bookwyrm/templates/user/user.html index c7f6d3b57..2ff66468c 100644 --- a/bookwyrm/templates/user/user.html +++ b/bookwyrm/templates/user/user.html @@ -1,7 +1,7 @@ {% extends 'user/user_layout.html' %} {% block header %} -
+

User profile

@@ -54,7 +54,7 @@ {% endif %}
-
+

User Activity