Skip to content

Commit

Permalink
chore: update txn address hover data boundary, replace manifest icon
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisloh95 committed Jul 26, 2023
1 parent 46101cc commit e788605
Show file tree
Hide file tree
Showing 14 changed files with 29 additions and 11 deletions.
2 changes: 2 additions & 0 deletions apps/block_scout_web/assets/css/theme/_mantle-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ body {
border-bottom: 1px solid #e7eaf3;
padding: 0;
border-radius: 0;
margin-bottom: 0;
min-height: auto;
.table-tile-row {
display: flex;
gap: 10px;
Expand Down
Binary file modified apps/block_scout_web/assets/static/android-chrome-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/block_scout_web/assets/static/android-chrome-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/block_scout_web/assets/static/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
<%= if @use_custom_tooltip == true do %>
<span><%= name %> (<%= short_hash(@address) %>...)</span>
<% else %>
<span data-toggle="tooltip" data-placement="top" title="<%= @address && @address.hash %>" data-custom-class="<%= if assigns[:custom_classes_tooltip], do: @custom_classes_tooltip |> Enum.join(" ") %>">
<span data-toggle="tooltip" data-placement="top" title="<%= @address && @address.hash %>" data-boundary="viewport" data-custom-class="<%= if assigns[:custom_classes_tooltip], do: @custom_classes_tooltip |> Enum.join(" ") %>" >
<span class="d-none d-md-none d-lg-inline d-xl-inline"><%= short_contract_name(name, 30) %></span>
<span class="d-inline d-md-inline d-lg-none d-xl-none"><%= short_contract_name(name, 10) %></span>
<span> (<%= BlockScoutWeb.AddressView.trimmed_hash(@address.hash) %>)</span>
</span>
<% end %>
<% end %>
<% else %>
<span data-toggle="tooltip" data-placement="top" title="<%= @address && @address.hash %>">
<span data-toggle="tooltip" data-placement="top" title="<%= @address && @address.hash %>" data-boundary="viewport">
<%= if assigns[:truncate] do %>
<%= BlockScoutWeb.AddressView.trimmed_hash(@address.hash) %>
<% else %>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
<%= if @transaction.to_address_hash do %>
<%= render BlockScoutWeb.AddressView, "_link.html", address: @transaction.to_address, contract: BlockScoutWeb.AddressView.contract?(@transaction.to_address), use_custom_tooltip: false %>
<% else %>
<%= gettext("Contract Address Pending") %>
<span class="text-truncate">
<%= gettext("Contract Address Pending") %>
<span>
<% end %>
</span>
<span class="d-flex flex-md-row flex-column mt-3 mt-md-0">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
<%= if @transaction.to_address_hash do %>
<%= render BlockScoutWeb.AddressView, "_link.html", address: @transaction.to_address, contract: BlockScoutWeb.AddressView.contract?(@transaction.to_address), use_custom_tooltip: false %>
<% else %>
<%= gettext("Contract Address Pending") %>
<span class="text-truncate">
<%= gettext("Contract Address Pending") %>
<span>
<% end %>
</span>
<span class="d-flex flex-md-row flex-column mt-3 mt-md-0">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div class="table-tile-row" data-selector="token-transfers-toggle" data-test="chain_transaction">
<span style="width: 2%;">
<%= if error do %>
<span data-toggle="tooltip" data-placement="top" title="" data-custom-class="" data-original-title="<%= gettext("Failed") %>">
<span data-toggle="tooltip" data-placement="top" title="" data-custom-class="" data-original-title="<%= gettext("Failed")<>": "<> error %>">
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="7" cy="7" r="7" fill="#E74242"/>
<path d="M4.52344 4.52539L9.47318 9.47514" stroke="white" stroke-width="1.5" stroke-linecap="round"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
<%= if @transaction.to_address_hash do %>
<%= render BlockScoutWeb.AddressView, "_link.html", address: @transaction.to_address, contract: BlockScoutWeb.AddressView.contract?(@transaction.to_address), use_custom_tooltip: false %>
<% else %>
<%= gettext("Contract Address Pending") %>
<span class="text-truncate">
<%= gettext("Contract Address Pending") %>
<span>
<% end %>
</span>
<span class="d-flex flex-md-row flex-column mt-3 mt-md-0">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
<%= if @transaction.to_address_hash do %>
<%= render BlockScoutWeb.AddressView, "_link.html", address: @transaction.to_address, contract: BlockScoutWeb.AddressView.contract?(@transaction.to_address), use_custom_tooltip: false %>
<% else %>
<%= gettext("Contract Address Pending") %>
<span class="text-truncate">
<%= gettext("Contract Address Pending") %>
<span>
<% end %>
</span>
<span class="d-flex flex-md-row flex-column mt-3 mt-md-0">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
<%= if @state_batch.to_address_hash do %>
<%= render BlockScoutWeb.AddressView, "_link.html", address: @state_batch.to_address, contract: BlockScoutWeb.AddressView.contract?(@state_batch.to_address), use_custom_tooltip: false %>
<% else %>
<%= gettext("Contract Address Pending") %>
<span class="text-truncate">
<%= gettext("Contract Address Pending") %>
<span>
<% end %>
</span>
<span class="d-flex flex-md-row flex-column mt-3 mt-md-0">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
<%= if @transaction.to_address_hash do %>
<%= render BlockScoutWeb.AddressView, "_link.html", address: @transaction.to_address, contract: BlockScoutWeb.AddressView.contract?(@transaction.to_address), use_custom_tooltip: false %>
<% else %>
<%= gettext("Contract Address Pending") %>
<span class="text-truncate">
<%= gettext("Contract Address Pending") %>
<span>
<% end %>
</span>
<span class="d-flex flex-md-row flex-column mt-3 mt-md-0">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
<%= if @transaction.to_address_hash do %>
<%= render BlockScoutWeb.AddressView, "_link.html", address: @transaction.to_address, contract: BlockScoutWeb.AddressView.contract?(@transaction.to_address), use_custom_tooltip: false %>
<% else %>
<%= gettext("Contract Address Pending") %>
<span class="text-truncate">
<%= gettext("Contract Address Pending") %>
<span>
<% end %>
</span>
<span class="d-flex flex-md-row flex-column mt-3 mt-md-0">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
<%= if @transaction.to_address_hash do %>
<%= render BlockScoutWeb.AddressView, "_link.html", address: @transaction.to_address, contract: BlockScoutWeb.AddressView.contract?(@transaction.to_address), use_custom_tooltip: false %>
<% else %>
<%= gettext("Contract Address Pending") %>
<span class="text-truncate">
<%= gettext("Contract Address Pending") %>
<span>
<% end %>
</span>
<span class="d-flex flex-md-row flex-column mt-3 mt-md-0">
Expand Down

0 comments on commit e788605

Please sign in to comment.