(fix) Wrong styles for tokens dropdown

pull/1944/head
Gabriel Rodriguez Alsina 6 years ago
parent f613f37e25
commit 4a2dd4760b
  1. 4
      apps/block_scout_web/assets/css/components/_card.scss
  2. 4
      apps/block_scout_web/assets/css/components/_dropdown.scss
  3. 4
      apps/block_scout_web/lib/block_scout_web/templates/address_token_balance/_token_balances.html.eex
  4. 4
      apps/block_scout_web/lib/block_scout_web/templates/address_token_balance/_tokens.html.eex

@ -18,8 +18,8 @@ $card-background-1-text-color: #fff !default;
background-color: $card-background-1;
color: $card-background-1-text-color;
a,
a:hover {
a:not(.dropdown-item),
a:not(.dropdown-item):hover {
color: $card-background-1-text-color;
}
}

@ -60,9 +60,9 @@
.dropdown-search-icon {
color: $gray-300;
left: 0.625rem;
left: 8px;
pointer-events: none;
top: 0.5rem;
top: 5px;
}
.dropdown-search-field {

@ -1,6 +1,6 @@
<%= if Enum.any?(@token_balances) do %>
<a href="#"
class="text-white text-faded"
<a
href="#"
data-dropdown-toggle
data-toggle="dropdown"
role="button"

@ -15,7 +15,7 @@
class: "dropdown-item"
) do %>
<div class="row">
<p class="mb-0 col-md-6"><%= token_name(token_balance.token) %></p>
<p class="mb-0 col-md-6">xxxxxxxxxxxxx<%= token_name(token_balance.token) %></p>
<%= if token_balance.token.usd_value do %>
<p class="mb-0 col-md-6 text-right">
<span data-selector="token-balance-usd" data-usd-value="<%= balance_in_usd(token_balance) %>"></span>
@ -23,7 +23,7 @@
<% end %>
</div>
<div class="row">
<p class="mb-0 col-md-6">
<p class="mb-0 col-md-6">xxxxxxxxxxx
<%= format_according_to_decimals(token_balance.value, token_balance.token.decimals) %> <%= token_balance.token.symbol %>
</p>
<%= if token_balance.token.usd_value do %>

Loading…
Cancel
Save