From 2921e048eaca12910096442dd1174c287f7dd953 Mon Sep 17 00:00:00 2001 From: Ryan Arthur Date: Thu, 27 Sep 2018 14:34:08 -0400 Subject: [PATCH] Add loading spinner element to the transaction status label --- .../assets/css/components/_loading-spinner.scss | 4 ++-- .../block_scout_web/templates/transaction/_tile.html.eex | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/apps/block_scout_web/assets/css/components/_loading-spinner.scss b/apps/block_scout_web/assets/css/components/_loading-spinner.scss index 4c6b8a0c53..9ea746441a 100644 --- a/apps/block_scout_web/assets/css/components/_loading-spinner.scss +++ b/apps/block_scout_web/assets/css/components/_loading-spinner.scss @@ -35,10 +35,10 @@ } } - .loading-spinner-small { display: inline-block; - top: -0.125em; + position: relative; + top: -0.05em; margin: auto 0.5em auto 0; width: 1em; height: 1em; diff --git a/apps/block_scout_web/lib/block_scout_web/templates/transaction/_tile.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/transaction/_tile.html.eex index 7d7262970b..c64234d76d 100644 --- a/apps/block_scout_web/lib/block_scout_web/templates/transaction/_tile.html.eex +++ b/apps/block_scout_web/lib/block_scout_web/templates/transaction/_tile.html.eex @@ -1,10 +1,16 @@
-
+
<%= transaction_display_type(@transaction) %> + <%= if status_class(@transaction) == "tile-status--pending" do %> +
+ + +
+ <% end %> <%= formatted_status(@transaction) %>