From e9072b0a64c27ff7314ac262b34cb550448aeaba Mon Sep 17 00:00:00 2001 From: Viktor Baranov Date: Wed, 16 Jun 2021 12:26:54 +0300 Subject: [PATCH] Tx tile mobile view fix --- CHANGELOG.md | 1 + .../templates/transaction/_tile.html.eex | 12 +++++++----- apps/block_scout_web/priv/gettext/default.pot | 12 ++++++------ .../priv/gettext/en/LC_MESSAGES/default.po | 12 ++++++------ 4 files changed, 20 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b1280aa0da..7c79ecf6ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ - [#4067](https://github.com/blockscout/blockscout/pull/4067) - Display LP tokens USD value and custom metadata in tokens dropdown at address page ### Fixes +- [#4295](https://github.com/blockscout/blockscout/pull/4295) - Mobile view fix: transaction tile tx hash overflow - [#4294](https://github.com/blockscout/blockscout/pull/4294) - User wont be able to open verification pages for verified smart-contract - [#4240](https://github.com/blockscout/blockscout/pull/4240) - `[]` is accepted in write contract page - [#4236](https://github.com/blockscout/blockscout/pull/4236), [#4242](https://github.com/blockscout/blockscout/pull/4242) - Fix typo, constructor instead of contructor diff --git a/apps/block_scout_web/lib/block_scout_web/templates/transaction/_tile.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/transaction/_tile.html.eex index 8ca3350a13..740e169d04 100644 --- a/apps/block_scout_web/lib/block_scout_web/templates/transaction/_tile.html.eex +++ b/apps/block_scout_web/lib/block_scout_web/templates/transaction/_tile.html.eex @@ -19,11 +19,13 @@
- <%= render "_link.html", transaction_hash: @transaction.hash %> - <% method_name = Transaction.get_method_name(@transaction) %> - <%= if method_name do %> - <%= render BlockScoutWeb.FormView, "_tag.html", text: method_name, additional_classes: ["method", "ml-1"] %> - <% end %> +
+ <%= render "_link.html", transaction_hash: @transaction.hash %> + <% method_name = Transaction.get_method_name(@transaction) %> + <%= if method_name do %> + <%= render BlockScoutWeb.FormView, "_tag.html", text: method_name, additional_classes: ["method", "ml-1"] %> + <% end %> +
<%= @transaction |> BlockScoutWeb.AddressView.address_partial_selector(:from, assigns[:current_address]) |> BlockScoutWeb.RenderHelpers.render_partial() %> diff --git a/apps/block_scout_web/priv/gettext/default.pot b/apps/block_scout_web/priv/gettext/default.pot index 5a34106a64..2b38e592b7 100644 --- a/apps/block_scout_web/priv/gettext/default.pot +++ b/apps/block_scout_web/priv/gettext/default.pot @@ -645,7 +645,7 @@ msgstr "" #: lib/block_scout_web/templates/internal_transaction/_tile.html.eex:20 #: lib/block_scout_web/templates/layout/app.html.eex:33 #: lib/block_scout_web/templates/transaction/_pending_tile.html.eex:20 -#: lib/block_scout_web/templates/transaction/_tile.html.eex:35 +#: lib/block_scout_web/templates/transaction/_tile.html.eex:37 #: lib/block_scout_web/templates/transaction/overview.html.eex:215 #: lib/block_scout_web/templates/transaction/overview.html.eex:268 #: lib/block_scout_web/views/wei_helpers.ex:78 @@ -771,7 +771,7 @@ msgstr "" #, elixir-format #: lib/block_scout_web/templates/internal_transaction/_tile.html.eex:38 -#: lib/block_scout_web/templates/transaction/_tile.html.eex:78 +#: lib/block_scout_web/templates/transaction/_tile.html.eex:80 msgid "IN" msgstr "" @@ -789,7 +789,7 @@ msgstr "" #, elixir-format #: lib/block_scout_web/templates/transaction/_pending_tile.html.eex:21 -#: lib/block_scout_web/templates/transaction/_tile.html.eex:38 +#: lib/block_scout_web/templates/transaction/_tile.html.eex:40 #: lib/block_scout_web/templates/transaction/overview.html.eex:118 msgid "TX Fee" msgstr "" @@ -1113,7 +1113,7 @@ msgstr "" #, elixir-format #: lib/block_scout_web/templates/internal_transaction/_tile.html.eex:36 -#: lib/block_scout_web/templates/transaction/_tile.html.eex:74 +#: lib/block_scout_web/templates/transaction/_tile.html.eex:76 msgid "OUT" msgstr "" @@ -1623,12 +1623,12 @@ msgid "View Contract" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/transaction/_tile.html.eex:59 +#: lib/block_scout_web/templates/transaction/_tile.html.eex:61 msgid "View Less Transfers" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/transaction/_tile.html.eex:58 +#: lib/block_scout_web/templates/transaction/_tile.html.eex:60 msgid "View More Transfers" msgstr "" diff --git a/apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po b/apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po index 5a34106a64..2b38e592b7 100644 --- a/apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po +++ b/apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po @@ -645,7 +645,7 @@ msgstr "" #: lib/block_scout_web/templates/internal_transaction/_tile.html.eex:20 #: lib/block_scout_web/templates/layout/app.html.eex:33 #: lib/block_scout_web/templates/transaction/_pending_tile.html.eex:20 -#: lib/block_scout_web/templates/transaction/_tile.html.eex:35 +#: lib/block_scout_web/templates/transaction/_tile.html.eex:37 #: lib/block_scout_web/templates/transaction/overview.html.eex:215 #: lib/block_scout_web/templates/transaction/overview.html.eex:268 #: lib/block_scout_web/views/wei_helpers.ex:78 @@ -771,7 +771,7 @@ msgstr "" #, elixir-format #: lib/block_scout_web/templates/internal_transaction/_tile.html.eex:38 -#: lib/block_scout_web/templates/transaction/_tile.html.eex:78 +#: lib/block_scout_web/templates/transaction/_tile.html.eex:80 msgid "IN" msgstr "" @@ -789,7 +789,7 @@ msgstr "" #, elixir-format #: lib/block_scout_web/templates/transaction/_pending_tile.html.eex:21 -#: lib/block_scout_web/templates/transaction/_tile.html.eex:38 +#: lib/block_scout_web/templates/transaction/_tile.html.eex:40 #: lib/block_scout_web/templates/transaction/overview.html.eex:118 msgid "TX Fee" msgstr "" @@ -1113,7 +1113,7 @@ msgstr "" #, elixir-format #: lib/block_scout_web/templates/internal_transaction/_tile.html.eex:36 -#: lib/block_scout_web/templates/transaction/_tile.html.eex:74 +#: lib/block_scout_web/templates/transaction/_tile.html.eex:76 msgid "OUT" msgstr "" @@ -1623,12 +1623,12 @@ msgid "View Contract" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/transaction/_tile.html.eex:59 +#: lib/block_scout_web/templates/transaction/_tile.html.eex:61 msgid "View Less Transfers" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/transaction/_tile.html.eex:58 +#: lib/block_scout_web/templates/transaction/_tile.html.eex:60 msgid "View More Transfers" msgstr ""