Skip to content

Commit

Permalink
fix: Temporary fix for #304
Browse files Browse the repository at this point in the history
  • Loading branch information
TreyWW committed Apr 22, 2024
1 parent d70e5c1 commit ad6fa87
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions frontend/templates/pages/invoices/dashboard/_fetch_body.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@
<td colspan="2">
{# The if statement for dropdown top goes as follows #}
{# Use dropdown on top if these: #}
{# - is second to last item (and not first item) #}
{# - is last item (and not first item) #}
<div class="dropdown dropdown-left {% if forloop.last and invoices.count > 1 or forloop.counter == invoices.count|sub:1 and not forloop.first %}dropdown-top {% endif %}">
{# - is last item (and not first item) (and more than 4 items) #}
<div class="dropdown dropdown-left {% if forloop.last and invoices.count > 4 %}dropdown-top{% endif %}">
<label tabindex="0" class="btn btn-primary btn-outline btn-sm">
<i class="fa-solid fa-ellipsis-vertical"></i>
</label>
Expand Down

0 comments on commit ad6fa87

Please sign in to comment.