forked from mirrors/bookwyrm
Fixes header wrap on mobile headers
This commit is contained in:
parent
27d81306e3
commit
8a3d1a0bf2
10 changed files with 24 additions and 30 deletions
|
@ -2,7 +2,7 @@
|
||||||
{% load bookwyrm_tags %}
|
{% load bookwyrm_tags %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="block">
|
<div class="block">
|
||||||
<div class="columns">
|
<div class="columns is-mobile">
|
||||||
<div class="column">
|
<div class="column">
|
||||||
<h1 class="title">{{ author.name }}</h1>
|
<h1 class="title">{{ author.name }}</h1>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
<div class="block">
|
<div class="block">
|
||||||
<div class="columns">
|
<div class="columns is-mobile">
|
||||||
<div class="column">
|
<div class="column">
|
||||||
<h1 class="title">
|
<h1 class="title">
|
||||||
{{ book.title }}{% if book.subtitle %}:
|
{{ book.title }}{% if book.subtitle %}:
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
{% load bookwyrm_tags %}
|
{% load bookwyrm_tags %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
<header class="columns content">
|
<header class="columns content is-mobile">
|
||||||
<div class="column">
|
<div class="column">
|
||||||
<h1 class="title">{{ list.name }} <span class="subtitle">{% include 'snippets/privacy-icons.html' with item=list %}</span></h1>
|
<h1 class="title">{{ list.name }} <span class="subtitle">{% include 'snippets/privacy-icons.html' with item=list %}</span></h1>
|
||||||
<p class="subtitle help">Created {% if list.curation != 'open' %} and curated{% endif %} by {% include 'snippets/username.html' with user=list.user %}</p>
|
<p class="subtitle help">Created {% if list.curation != 'open' %} and curated{% endif %} by {% include 'snippets/username.html' with user=list.user %}</p>
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<h1 class="title">Lists</h1>
|
<h1 class="title">Lists</h1>
|
||||||
</header>
|
</header>
|
||||||
{% if request.user.is_authenticated and not lists.has_previous %}
|
{% if request.user.is_authenticated and not lists.has_previous %}
|
||||||
<header class="block columns">
|
<header class="block columns is-mobile">
|
||||||
<div class="column">
|
<div class="column">
|
||||||
<h2 class="title">Your lists</h2>
|
<h2 class="title">Your lists</h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{% load humanize %}
|
{% load humanize %}
|
||||||
{% load bookwyrm_tags %}
|
{% load bookwyrm_tags %}
|
||||||
{% if books|length > 0 %}
|
{% if books|length > 0 %}
|
||||||
|
<div class="table-container">
|
||||||
<table class="table is-striped is-fullwidth">
|
<table class="table is-striped is-fullwidth">
|
||||||
|
|
||||||
<tr class="book-preview">
|
<tr class="book-preview">
|
||||||
|
@ -74,6 +75,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</table>
|
</table>
|
||||||
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
<p>This shelf is empty.</p>
|
<p>This shelf is empty.</p>
|
||||||
{% if shelf.editable %}
|
{% if shelf.editable %}
|
||||||
|
|
|
@ -15,19 +15,15 @@
|
||||||
<div class="block">
|
<div class="block">
|
||||||
<h2 class="title">Followers</h2>
|
<h2 class="title">Followers</h2>
|
||||||
{% for followers in followers %}
|
{% for followers in followers %}
|
||||||
<div class="block">
|
<div class="block columns">
|
||||||
<div class="field is-grouped">
|
<div class="column">
|
||||||
<div class="control">
|
|
||||||
{% include 'snippets/avatar.html' with user=followers %}
|
{% include 'snippets/avatar.html' with user=followers %}
|
||||||
</div>
|
|
||||||
<div class="control">
|
|
||||||
{% include 'snippets/username.html' with user=followers show_full=True %}
|
{% include 'snippets/username.html' with user=followers show_full=True %}
|
||||||
</div>
|
</div>
|
||||||
<div class="control">
|
<div class="column is-narrow">
|
||||||
{% include 'snippets/follow_button.html' with user=followers %}
|
{% include 'snippets/follow_button.html' with user=followers %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% if not followers.count %}
|
{% if not followers.count %}
|
||||||
<div>{{ user|username }} has no followers</div>
|
<div>{{ user|username }} has no followers</div>
|
||||||
|
|
|
@ -15,19 +15,15 @@
|
||||||
<div class="block">
|
<div class="block">
|
||||||
<h2 class="title">Following</h2>
|
<h2 class="title">Following</h2>
|
||||||
{% for follower in user.following.all %}
|
{% for follower in user.following.all %}
|
||||||
<div class="block">
|
<div class="block columns">
|
||||||
<div class="field is-grouped">
|
<div class="column">
|
||||||
<div class="control">
|
|
||||||
{% include 'snippets/avatar.html' with user=follower %}
|
{% include 'snippets/avatar.html' with user=follower %}
|
||||||
</div>
|
|
||||||
<div class="control">
|
|
||||||
{% include 'snippets/username.html' with user=follower show_full=True %}
|
{% include 'snippets/username.html' with user=follower show_full=True %}
|
||||||
</div>
|
</div>
|
||||||
<div class="control">
|
<div class="column">
|
||||||
{% include 'snippets/follow_button.html' with user=follower %}
|
{% include 'snippets/follow_button.html' with user=follower %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% if not following.count %}
|
{% if not following.count %}
|
||||||
<div>{{ user|username }} isn't following any users</div>
|
<div>{{ user|username }} isn't following any users</div>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{% extends 'user/user_layout.html' %}
|
{% extends 'user/user_layout.html' %}
|
||||||
|
|
||||||
{% block header %}
|
{% block header %}
|
||||||
<div class="columns">
|
<div class="columns is-mobile">
|
||||||
<div class="column">
|
<div class="column">
|
||||||
<h1 class="title">
|
<h1 class="title">
|
||||||
{% if is_self %}Your
|
{% if is_self %}Your
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
{% include 'user/create_shelf_form.html' with controls_text='create-shelf-form' %}
|
{% include 'user/create_shelf_form.html' with controls_text='create-shelf-form' %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="block columns">
|
<div class="block columns is-mobile">
|
||||||
<div class="column">
|
<div class="column">
|
||||||
<h2 class="title is-3">
|
<h2 class="title is-3">
|
||||||
{{ shelf.name }}
|
{{ shelf.name }}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{% extends 'user/user_layout.html' %}
|
{% extends 'user/user_layout.html' %}
|
||||||
|
|
||||||
{% block header %}
|
{% block header %}
|
||||||
<div class="columns">
|
<div class="columns is-mobile">
|
||||||
<div class="column">
|
<div class="column">
|
||||||
<h1 class="title">User profile</h1>
|
<h1 class="title">User profile</h1>
|
||||||
</div>
|
</div>
|
||||||
|
@ -54,7 +54,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<div class="columns">
|
<div class="columns is-mobile">
|
||||||
<h2 class="title column">User Activity</h2>
|
<h2 class="title column">User Activity</h2>
|
||||||
<div class="column is-narrow">
|
<div class="column is-narrow">
|
||||||
<a class="icon icon-rss" target="_blank" href="{{ user.local_path }}/rss">
|
<a class="icon icon-rss" target="_blank" href="{{ user.local_path }}/rss">
|
||||||
|
|
Loading…
Reference in a new issue