Move actions next to time, for compactness

This commit is contained in:
Andrew Godwin 2022-11-23 00:14:55 -07:00
parent 2c5b96e264
commit 7081a718e0
2 changed files with 15 additions and 10 deletions

View File

@ -713,8 +713,12 @@ h1.identity small {
.post time { .post time {
display: block; display: block;
float: right; float: right;
padding-left: 64px;
color: var(--color-text-duller); color: var(--color-text-duller);
width: 60px;
text-align: center;
background-color: var(--color-bg-main);
border-radius: 3px;
padding: 3px 5px;
} }
.post time i { .post time i {
@ -771,13 +775,14 @@ h1.identity small {
} }
.post .actions { .post .actions {
padding-left: 64px; float: right;
padding: 3px 5px 0 0;
} }
.post .actions a { .post .actions a {
cursor: pointer; cursor: pointer;
color: var(--color-text-dull); color: var(--color-text-dull);
margin-right: 10px; margin-right: 5px;
} }
.post .actions a:hover { .post .actions a:hover {

View File

@ -25,6 +25,13 @@
</a> </a>
</time> </time>
{% if request.identity %}
<div class="actions">
{% include "activities/_like.html" %}
{% include "activities/_boost.html" %}
</div>
{% endif %}
<a href="{{ post.author.urls.view }}" class="handle"> <a href="{{ post.author.urls.view }}" class="handle">
{{ post.author.name_or_handle }} <small>@{{ post.author.handle }}</small> {{ post.author.name_or_handle }} <small>@{{ post.author.handle }}</small>
</a> </a>
@ -48,11 +55,4 @@
{% endfor %} {% endfor %}
</div> </div>
{% endif %} {% endif %}
{% if request.identity %}
<div class="actions">
{% include "activities/_like.html" %}
{% include "activities/_boost.html" %}
</div>
{% endif %}
</div> </div>