diff --git a/app/assets/tailwind/maybe-design-system.css b/app/assets/tailwind/maybe-design-system.css index 3d094216c..baad5bf3d 100644 --- a/app/assets/tailwind/maybe-design-system.css +++ b/app/assets/tailwind/maybe-design-system.css @@ -449,4 +449,8 @@ fill: var(--color-white); } } + + .-right-1 { + right: calc(var(--spacing)*-1) + } } \ No newline at end of file diff --git a/app/views/transactions/_transaction.html.erb b/app/views/transactions/_transaction.html.erb index bb5f2f075..1289afdb9 100644 --- a/app/views/transactions/_transaction.html.erb +++ b/app/views/transactions/_transaction.html.erb @@ -18,24 +18,31 @@ } %>
- <%= content_tag :div, class: ["flex items-center gap-2"] do %> - <% if transaction.merchant&.logo_url.present? %> - <%= image_tag transaction.merchant.logo_url, - class: "w-6 h-6 rounded-full", - loading: "lazy" %> - <% else %> - -
- <%= render "transactions/transaction_category", transaction: transaction %> -
- <% end %> + <%= content_tag :div, class: ["flex items-center gap-3 lg:gap-4"] do %> + +
+ <%= render "transactions/transaction_category", transaction: transaction %> + <% if transaction.merchant&.logo_url.present? %> + <%= image_tag transaction.merchant.logo_url, + class: "w-5 h-5 rounded-full absolute -bottom-1 -right-1", + loading: "lazy" %> + <% end %> +