From 1364e4400f6ea7ae42e6eb41eb19b74f1ff3c1b5 Mon Sep 17 00:00:00 2001 From: tomlum Date: Wed, 15 Dec 2021 12:01:06 -0500 Subject: [PATCH] css fixes and refactors --- .../modal/email-confirmation/modal.scss | 12 ++++++------ src/views/preview/presentation.jsx | 19 +++++-------------- 2 files changed, 11 insertions(+), 20 deletions(-) diff --git a/src/components/modal/email-confirmation/modal.scss b/src/components/modal/email-confirmation/modal.scss index 23701f814..f0d4e49c4 100644 --- a/src/components/modal/email-confirmation/modal.scss +++ b/src/components/modal/email-confirmation/modal.scss @@ -5,23 +5,23 @@ .modal-content{ border-radius: 4px; overflow: hidden; - max-width: 31.25rem; + max-width: 500px; h1{ - font-size: 32px; - line-height: 40px; + font-size: 2rem; + line-height: 2.5rem; } .modal-content-close{ - top: 0.3rem; - right: 0.3rem; + top: 5px; + right: 5px; } .modal-middle-content{ display: flex; } - .modal-right-content{ + .modal-text-content{ margin-top: 30px; margin-bottom: 30px; margin-right: 20px; diff --git a/src/views/preview/presentation.jsx b/src/views/preview/presentation.jsx index 1dbaa0efb..ac63fc9bb 100644 --- a/src/views/preview/presentation.jsx +++ b/src/views/preview/presentation.jsx @@ -192,20 +192,11 @@ const PreviewPresentation = ({ />); } } else if (!isShared) { - if (canShare){ - banner = (} - message={} - onAction={onShare} - />); - } else { - banner = (} - message={} - onAction={onShareAttempt} - /> - ); - } + banner = (} + message={} + onAction={canShare ? onShare : onShareAttempt} + />); } }