From d58b3fa55d84303d27fde6e71e96e2ab541f8c51 Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Wed, 7 Oct 2020 20:07:04 +0300 Subject: [PATCH] DF theme: fix flickering at tx page --- .../lib/block_scout_web/templates/layout/app.html.eex | 4 ++-- .../block_scout_web/templates/transaction/overview.html.eex | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/block_scout_web/lib/block_scout_web/templates/layout/app.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/layout/app.html.eex index d388a7fe95..26d7f2d316 100644 --- a/apps/block_scout_web/lib/block_scout_web/templates/layout/app.html.eex +++ b/apps/block_scout_web/lib/block_scout_web/templates/layout/app.html.eex @@ -69,8 +69,8 @@ @view_module == Elixir.BlockScoutWeb.TransactionTokenTransferView ) -> %> <% true -> %> diff --git a/apps/block_scout_web/lib/block_scout_web/templates/transaction/overview.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/transaction/overview.html.eex index b865865285..23fbc059d0 100644 --- a/apps/block_scout_web/lib/block_scout_web/templates/transaction/overview.html.eex +++ b/apps/block_scout_web/lib/block_scout_web/templates/transaction/overview.html.eex @@ -14,7 +14,7 @@ document.documentElement.className += " " + "dark-forest-theme-applied"; return; } - document.getElementsByTagName("body")[0].style.visibility = "visible"; + document.getElementsByClassName("layout-container")[0].style.visibility = "visible"; }) } window.onload = applyCustomMode()