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.
pull/606/head
Lucas Narciso 6 years ago
parent 4dbddbfeff
commit 83b3c77ced
No known key found for this signature in database
GPG Key ID: 9E89F4CF3FBAB001
  1. 3
      apps/block_scout_web/assets/css/components/_tile.scss
  2. 2
      apps/block_scout_web/lib/block_scout_web/templates/tokens/token/_token_transfer.html.eex
  3. 2
      apps/block_scout_web/lib/block_scout_web/templates/transaction_token_transfer/_token_transfer.html.eex
  4. 2
      apps/block_scout_web/lib/block_scout_web/views/transaction_view.ex

@ -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;

@ -1,4 +1,4 @@
<div class="tile tile-type-token fade-in mb-10">
<div class="tile tile-type-token-transfer fade-in">
<div class="row">
<div class="pl-5 col-md-2 d-flex flex-column align-items-left justify-content-start justify-content-lg-center">
<span class="tile-label"><%= gettext "Token Transfer" %></span>

@ -1,4 +1,4 @@
<div class="tile tile-type-token fade-in">
<div class="tile tile-type-token-transfer fade-in">
<div class="row justify-content-end">
<div class="col-12 col-md-4 col-lg-2 d-flex align-items-center justify-content-start justify-content-lg-center tile-label">
<%= gettext("Token Transfer") %>

@ -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"

Loading…
Cancel
Save