Various UI improvements #43

Merged
raucao merged 5 commits from ui/misc into master 2021-11-24 02:41:55 +00:00
Showing only changes of commit 669b163814 - Show all commits

View File

@@ -1,16 +1,21 @@
<section class="w-full grid grid-cols-1 md:grid-cols-2">
<div>
<section class="w-full grid grid-cols-1 md:grid-cols-12 md:mb-0">
<div class="md:col-span-8">
<h2>Wallet</h2>
<p>
Send and receive BTC via the Lightning Network.
Send and receive sats via the Bitcoin Lightning Network.
</p>
</div>
<div class="md:col-span-4 mt-4 md:mt-0">
<p class="font-mono md:text-right p-4 bg-gray-50 shadow rounded-lg overflow-hidden">
<% if @balance %>
<span class="text-xl">48590<%= @balance %> sats</span><br>
raucao marked this conversation as resolved Outdated

There is a hardcoded number in front of the actual balance.

There is a hardcoded number in front of the actual balance.
<span class="text-sm text-gray-500">Available balance</span>
<% else %>
<span class="text-xl">n/a<%= @balance %> sats</span><br>
raucao marked this conversation as resolved Outdated

Looks like a copy/paste error. The <%= @balance %> should be removed.

Looks like a copy/paste error. The `<%= @balance %>` should be removed.
<span class="text-sm text-gray-500">Balance unavailable</span>
<% end %>
</p>
</div>
<p class="font-mono mt-4 md:text-right md:mt-0">
<% if @balance %>
<span class="text-xl"><%= @balance %> sats</span><br>
<span class="text-sm text-gray-500">Available balance</span>
<% end %>
</p>
</section>
<section>