Shape tx details UI a bit
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
Râu Cao 2023-05-03 12:51:22 +02:00
parent 67a9fc02d7
commit f1ae5667de
Signed by: raucao
GPG Key ID: 15E65F399D084BA9

View File

@ -27,7 +27,7 @@
<p class="col-span-2 md:col-span-1 mb-0 text-right"> <p class="col-span-2 md:col-span-1 mb-0 text-right">
<span class="text-xl font-mono <%= tx["received"] ? "text-emerald-600" : "" %>"> <span class="text-xl font-mono <%= tx["received"] ? "text-emerald-600" : "" %>">
<%= tx["received"] ? "+" : "" %><%= number_with_delimiter tx["amount_sats"] %> <%= tx["received"] ? "+" : "" %><%= number_with_delimiter tx["amount_sats"] %>
<span class="hidden md:inline">sats</span> <span class="text-base md:text-lg">sats</span>
</span> </span>
</p> </p>
<p class="col-span-4 md:col-span-3 mb-0 text-gray-500"> <p class="col-span-4 md:col-span-3 mb-0 text-gray-500">
@ -36,7 +36,9 @@
<p class="col-span-4 md:col-span-1 md:text-right mb-0"> <p class="col-span-4 md:col-span-1 md:text-right mb-0">
<span class="col-span-2 md:col-span-1 text-sm text-gray-500"> <span class="col-span-2 md:col-span-1 text-sm text-gray-500">
<%= tx["datetime"].strftime("%B %e, %H:%M") -%> <%= tx["datetime"].strftime("%B %e, %H:%M") -%>
<% if tx["fee"] && (tx["fee"] > 0) %>, Fee: <%= tx["fee"] %> sats<% end %> <% if tx["fee"] && (tx["fee"] > 0) %>
~ Fee: <%= pluralize tx["fee"], "sat" %>
<% end %>
</span> </span>
</p> </p>
</li> </li>