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

2
tildes/tildes/templates/topic.jinja2

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

Loading…
Cancel
Save