diff --git a/apps/explorer_web/assets/css/components/_qr-code.scss b/apps/explorer_web/assets/css/components/_qr-code.scss index 5952705bba..5323908d28 100644 --- a/apps/explorer_web/assets/css/components/_qr-code.scss +++ b/apps/explorer_web/assets/css/components/_qr-code.scss @@ -1,4 +1,7 @@ .qr-code { display: block; - margin: auto; + margin-right: auto; + margin-left: auto; + width: 100%; + max-width: 60px; } diff --git a/apps/explorer_web/lib/explorer_web/templates/address/overview.html.eex b/apps/explorer_web/lib/explorer_web/templates/address/overview.html.eex index 4b5793090a..bd49f9e403 100644 --- a/apps/explorer_web/lib/explorer_web/templates/address/overview.html.eex +++ b/apps/explorer_web/lib/explorer_web/templates/address/overview.html.eex @@ -1,6 +1,17 @@
-

<%= address_title(@address) %>

-

<%= @address %>

+
+
+
+
+ <%= img_tag(address_qr_code_path(@conn, :index, @conn.assigns.locale, @address), alt: "qr_code", class: "qr-code") %> +
+
+
+
+

<%= gettext "Address" %>

+

<%= @address %>

+
+
@@ -8,17 +19,6 @@
- - - -
- <%= gettext "Overview" %> - - - - - -
<%= gettext "POA Balance" %> @@ -50,30 +50,3 @@ - - -