From 70c75d0a00616ca7c30d7bfdac6cba1157c1efad Mon Sep 17 00:00:00 2001 From: Ryan Arthur Date: Wed, 30 May 2018 13:02:19 -0400 Subject: [PATCH] Position the QR code within the modal --- apps/explorer_web/assets/css/app.scss | 1 + apps/explorer_web/assets/css/components/_qr-code.scss | 4 ++++ .../lib/explorer_web/templates/address/overview.html.eex | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 apps/explorer_web/assets/css/components/_qr-code.scss diff --git a/apps/explorer_web/assets/css/app.scss b/apps/explorer_web/assets/css/app.scss index 7218895964..611652e8bc 100644 --- a/apps/explorer_web/assets/css/app.scss +++ b/apps/explorer_web/assets/css/app.scss @@ -61,6 +61,7 @@ $fa-font-path: "~@fortawesome/fontawesome-free/webfonts"; @import "components/filter"; @import "components/button"; @import "components/table"; +@import "components/qr-code"; :export { primary: $primary; diff --git a/apps/explorer_web/assets/css/components/_qr-code.scss b/apps/explorer_web/assets/css/components/_qr-code.scss new file mode 100644 index 0000000000..5952705bba --- /dev/null +++ b/apps/explorer_web/assets/css/components/_qr-code.scss @@ -0,0 +1,4 @@ +.qr-code { + display: block; + margin: auto; +} 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 ee5072f804..9d00613144 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 @@ -69,7 +69,7 @@ - <%= img_tag(address_qr_code_path(@conn, :index, @conn.assigns.locale, @address), alt: "qr_code") %> + <%= img_tag(address_qr_code_path(@conn, :index, @conn.assigns.locale, @address), alt: "qr_code", class: "qr-code") %>