From 805d3f419e1ce736512286a0ce7c0d0dd301ade7 Mon Sep 17 00:00:00 2001 From: Herculino Trotta Date: Sat, 19 Jul 2025 14:42:50 -0300 Subject: [PATCH] refactor: improve transaction menu displaying Use hover instead of hyperscript and events --- app/templates/cotton/transaction/item.html | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/app/templates/cotton/transaction/item.html b/app/templates/cotton/transaction/item.html index 15fde0e..c7f3e05 100644 --- a/app/templates/cotton/transaction/item.html +++ b/app/templates/cotton/transaction/item.html @@ -1,6 +1,6 @@ {% load markdown %} {% load i18n %} -
+
{% if not disable_selection %} {% endif %}
+ tw:hover:bg-zinc-900 p-2 {% if transaction.account.is_asset %}tw:border-dashed{% else %}tw:border-solid{% endif %} + {% if transaction.type == "EX" %}tw:border-red-500{% else %}tw:border-green-500{% endif %} tw:relative + w-100 transaction-item">
@@ -122,7 +120,7 @@
{# Item actions#}
+ class="transaction-actions tw:absolute! tw:left-1/2 tw:top-0 tw:-translate-x-1/2 tw:-translate-y-1/2 tw:invisible tw:group-hover/transaction:visible d-flex flex-row card">
{% if not transaction.deleted %}