fix(templates): Fix alignment of columns in thread view
The author column is maybe slightly too large now, but that can be sorted out later.
This commit is contained in:
parent
9c2359c8c9
commit
9bc5bbff54
1 changed files with 8 additions and 8 deletions
|
@ -22,20 +22,20 @@
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="list-group d-flex flex-column">
|
<div class="list-group d-flex flex-column">
|
||||||
<div class="list-group-item d-flex">
|
<div class="list-group-item d-flex row">
|
||||||
<h3>{{ title | safe }}</h3>
|
<h3>{{ title | safe }}</h3>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% for post in posts -%}
|
{% for post in posts -%}
|
||||||
<div id="post-{{ post.id}}" class="list-group-item d-flex flex-row">
|
<div id="post-{{ post.id}}" class="list-group-item d-flex row">
|
||||||
<div class="d-flex flex-column pr-3 mr-1 border-right">
|
<div class="d-flex flex-column border-right col-2">
|
||||||
<img src="https://www.gravatar.com/avatar/{{ post.author_gravatar }}?d=monsterid" style="width: 80px;"/>
|
<img class="mx-auto" src="https://www.gravatar.com/avatar/{{ post.author_gravatar }}?d=monsterid" style="width: 80px;"/>
|
||||||
<strong>{{ post.author_name }}</strong>
|
<span class="mx-auto text-center"><strong>{{ post.author_name }}</strong></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="ml-2 align-self-stretch">{{ post.body | safe }}</div>
|
<div class="align-self-stretch col">{{ post.body | safe }}</div>
|
||||||
|
|
||||||
<div class="d-inline-flex flex-column align-items-end ml-auto">
|
<div class="d-inline-flex flex-column align-items-end ml-auto col-1">
|
||||||
<a href="/thread/{{ id }}#post-{{ post.id }}" class="ml-auto">
|
<a href="/thread/{{ id }}#post-{{ post.id }}" class="ml-auto">
|
||||||
<small class="text-muted float-right">{{ post.posted }}</small>
|
<small class="text-muted float-right">{{ post.posted }}</small>
|
||||||
</a>
|
</a>
|
||||||
|
@ -50,7 +50,7 @@
|
||||||
</div>
|
</div>
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
|
||||||
<div class="list-group-item flex-column align-items-start">
|
<div class="list-group-item flex-column align-items-start row">
|
||||||
<form id="reply-form" action="/thread/reply" method="post">
|
<form id="reply-form" action="/thread/reply" method="post">
|
||||||
<input type="hidden" id="thread_id" name="thread_id" value="{{ id }}">
|
<input type="hidden" id="thread_id" name="thread_id" value="{{ id }}">
|
||||||
<label for="body">You can use <strong>Markdown</strong>!</label>
|
<label for="body">You can use <strong>Markdown</strong>!</label>
|
||||||
|
|
Loading…
Reference in a new issue