Browse Source

Adjust btn-post padding to allow empty <menu>

merge-requests/64/head
Deimos 6 years ago
parent
commit
ac23d80c4b
  1. 4
      tildes/scss/modules/_btn.scss
  2. 2
      tildes/tildes/templates/topic.jinja2

4
tildes/scss/modules/_btn.scss

@ -75,7 +75,7 @@
align-items: center;
justify-content: space-between;
margin: 0;
padding: 0.2rem;
padding: 0 0.2rem;
// The buttons don't need to be spaced widely on a desktop
@media (min-width: $size-md) {
@ -96,7 +96,7 @@
@include min-touch-size;
display: flex;
padding: 0.2rem 0.4rem;
padding: 0.4rem;
background: none;
border: 0;

2
tildes/tildes/templates/topic.jinja2

@ -66,7 +66,6 @@
{% endif %}
{% endif %}
{% if request.has_any_permission(('edit', 'delete', 'tag', 'lock', 'move', 'edit_link', 'edit_title', 'remove', 'bookmark'), topic) %}
<menu class="btn-post">
{% if request.has_permission('edit', topic) %}
<li><button class="btn-post-action" name="edit"
@ -204,7 +203,6 @@
{% endif %}
</menu>
<div class="btn-post-settings"></div>
{% endif %}
{% if topic.is_locked %}
<div class="toast toast-warning">This topic is locked. New comments can not be posted.</div>

Loading…
Cancel
Save