From 83b3c77ced4f8c42b1e85bdc270560e100f72413 Mon Sep 17 00:00:00 2001 From: Lucas Narciso Date: Fri, 24 Aug 2018 12:37:54 -0300 Subject: [PATCH] Change tile-type-token to tile-type-token-transfer tile-type-token-transfer is more accurate and a tile-type-token is needed for token tiles. --- apps/block_scout_web/assets/css/components/_tile.scss | 3 +-- .../templates/tokens/token/_token_transfer.html.eex | 2 +- .../transaction_token_transfer/_token_transfer.html.eex | 2 +- .../lib/block_scout_web/views/transaction_view.ex | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/apps/block_scout_web/assets/css/components/_tile.scss b/apps/block_scout_web/assets/css/components/_tile.scss index bb44fb6ede..9fe28e882d 100644 --- a/apps/block_scout_web/assets/css/components/_tile.scss +++ b/apps/block_scout_web/assets/css/components/_tile.scss @@ -1,7 +1,6 @@ .tile { font-size: 12px; color: $text-muted; - border-radius: 2px; line-height: 1.4rem; border: 1px solid $border-color; border-left: 4px solid $primary; @@ -48,7 +47,7 @@ } } - &-token { + &-token-transfer { border-left: 4px solid $orange; padding-bottom: 10px; diff --git a/apps/block_scout_web/lib/block_scout_web/templates/tokens/token/_token_transfer.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/tokens/token/_token_transfer.html.eex index 1b349735e8..84168ae6d8 100644 --- a/apps/block_scout_web/lib/block_scout_web/templates/tokens/token/_token_transfer.html.eex +++ b/apps/block_scout_web/lib/block_scout_web/templates/tokens/token/_token_transfer.html.eex @@ -1,4 +1,4 @@ -
+
<%= gettext "Token Transfer" %> diff --git a/apps/block_scout_web/lib/block_scout_web/templates/transaction_token_transfer/_token_transfer.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/transaction_token_transfer/_token_transfer.html.eex index e6ef09c6c1..00607e50b5 100644 --- a/apps/block_scout_web/lib/block_scout_web/templates/transaction_token_transfer/_token_transfer.html.eex +++ b/apps/block_scout_web/lib/block_scout_web/templates/transaction_token_transfer/_token_transfer.html.eex @@ -1,4 +1,4 @@ -
+
<%= gettext("Token Transfer") %> diff --git a/apps/block_scout_web/lib/block_scout_web/views/transaction_view.ex b/apps/block_scout_web/lib/block_scout_web/views/transaction_view.ex index 4cd0c9d9a2..402352dd95 100644 --- a/apps/block_scout_web/lib/block_scout_web/views/transaction_view.ex +++ b/apps/block_scout_web/lib/block_scout_web/views/transaction_view.ex @@ -105,7 +105,7 @@ defmodule BlockScoutWeb.TransactionView do def type_suffix(%Transaction{} = transaction) do cond do - involves_token_transfers?(transaction) -> "token" + involves_token_transfers?(transaction) -> "token-transfer" contract_creation?(transaction) -> "contract-creation" involves_contract?(transaction) -> "contract-call" true -> "transaction"