From 2911dbaca05aff7a70bb7784a005894c6d7d00b4 Mon Sep 17 00:00:00 2001 From: Ryan Arthur Date: Thu, 31 May 2018 10:40:30 -0400 Subject: [PATCH] Move the QR code to the page header and remove the modal --- .../assets/css/components/_qr-code.scss | 5 +- .../templates/address/overview.html.eex | 53 +++++-------------- 2 files changed, 17 insertions(+), 41 deletions(-) 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 @@ - - -