Skip to content

Commit

Permalink
Token address line height fix for mobile view
Browse files Browse the repository at this point in the history
  • Loading branch information
vbaranov committed Sep 13, 2021
1 parent 65456e0 commit acac994
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
- [#4579](https://github.com/blockscout/blockscout/pull/4579) - Write contract page: Resize inputs; Improve multiplier selector

### Fixes
- [#4640](https://github.com/blockscout/blockscout/pull/4640) - Token address line height fix in mobile view
- [#4612](https://github.com/blockscout/blockscout/pull/4612) - Hide error selector in the contract's functions list
- [#4615](https://github.com/blockscout/blockscout/pull/4615) - Fix broken style for `View more transfers` button
- [#4592](https://github.com/blockscout/blockscout/pull/4592) - Add `type` field for `receive` and `fallback` entities of a Smart Contract
Expand Down
1 change: 1 addition & 0 deletions apps/block_scout_web/assets/css/components/_tile.scss
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,7 @@ $cube-quantity: 5;
@include media-breakpoint-down(sm) {
display: inline-block;
word-break: break-all;
line-height: 20px;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,9 @@
</td>
<td class="stakes-td">
<%= if System.get_env("DISPLAY_TOKEN_ICONS") === "true" do %>
<% foreign_chain_id =
if @bridged_token do
if Map.has_key?(@bridged_token, :foreign_chain_id), do: @bridged_token.foreign_chain_id, else: nil
else
nil
end %>
<% foreign_chain_id = nil %>
<% chain_id_for_token_icon = if foreign_chain_id, do: foreign_chain_id |> Decimal.to_integer() |> to_string(), else: System.get_env("CHAIN_ID") %>
<% foreign_token_contract_address_hash =
if @bridged_token do
if Map.has_key?(@bridged_token, :foreign_token_contract_address_hash), do: Address.checksum(@bridged_token.foreign_token_contract_address_hash), else: nil
else
nil
end %>
<% foreign_token_contract_address_hash = nil %>
<% token_hash_for_token_icon = if foreign_token_contract_address_hash, do: foreign_token_contract_address_hash, else: Address.checksum(@token.contract_address_hash) %>
<% token_icon_url = Explorer.Chain.get_token_icon_url_by(chain_id_for_token_icon, token_hash_for_token_icon) %>
<%= if token_icon_url do %>
Expand Down

0 comments on commit acac994

Please sign in to comment.