diff --git a/app/templates/cotton/transaction/item.html b/app/templates/cotton/transaction/item.html index 0bbe77da..6b518db4 100644 --- a/app/templates/cotton/transaction/item.html +++ b/app/templates/cotton/transaction/item.html @@ -16,7 +16,7 @@ hover:bg-base-200 p-2 {% if transaction.account.is_asset %}border-dashed{% else %}border-solid{% endif %} {% if is_transfer %}border-s-info{% elif transaction.type == "EX" %}border-s-error{% else %}border-s-success{% endif %} relative w-full transaction-item bg-base-100 rounded"> -
+
{% if not transaction.deleted %}
+ class="lg:w-auto lg:min-w-0 lg:max-w-1/2 w-full lg:text-right self-end {% if transaction.account.is_untracked_by or transaction.category.mute or transaction.mute %}opacity-70{% endif %}"> {% if is_transfer %} {# Each side: amount, with its account below, like a regular item #} -
+
-
{% if transaction.account.group %}{{ transaction.account.group.name }} • {% endif %}{{ transaction.account.name }}
+
{% if transaction.account.group %}{{ transaction.account.group.name }} • {% endif %}{{ transaction.account.name }}
@@ -167,7 +167,7 @@ :suffix="transfer_to.account.currency.suffix" :decimal_places="transfer_to.account.currency.decimal_places" color="green"> -
{% if transfer_to.account.group %}{{ transfer_to.account.group.name }} • {% endif %}{{ transfer_to.account.name }}
+
{% if transfer_to.account.group %}{{ transfer_to.account.group.name }} • {% endif %}{{ transfer_to.account.name }}
{% else %}