From 8266b21a6dc6715f7f084c158015013c2bc8a95c Mon Sep 17 00:00:00 2001 From: Andrew Cravenho Date: Fri, 8 Jun 2018 10:43:18 -0400 Subject: [PATCH] Increase characters in address and remove address icon Fixes #268 and #260 Increase the number of characters in the address to 12 and remove the icon when an address is not a contract. --- apps/explorer_web/assets/css/components/_address_link.scss | 1 + .../lib/explorer_web/templates/address/_link.html.eex | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/explorer_web/assets/css/components/_address_link.scss b/apps/explorer_web/assets/css/components/_address_link.scss index e58999d42a..205c8ce662 100644 --- a/apps/explorer_web/assets/css/components/_address_link.scss +++ b/apps/explorer_web/assets/css/components/_address_link.scss @@ -2,6 +2,7 @@ border: 1px solid $border-color; white-space: nowrap; display: inline-block; + padding-left: 3px; &__font { font-family: $font-family-monospace; diff --git a/apps/explorer_web/lib/explorer_web/templates/address/_link.html.eex b/apps/explorer_web/lib/explorer_web/templates/address/_link.html.eex index 1b71828c36..b0663d7310 100644 --- a/apps/explorer_web/lib/explorer_web/templates/address/_link.html.eex +++ b/apps/explorer_web/lib/explorer_web/templates/address/_link.html.eex @@ -7,10 +7,8 @@ title: @address do %> <%= if contract?(@address) do %> - <% else %> - <% end %> - <%= @address |> hash() |> String.slice(0..3) %><%= @address |> hash() |> String.slice(-4..-1) %> + <%= @address |> hash() |> String.slice(0..5) %><%= @address |> hash() |> String.slice(-6..-1) %> <% end %>