From 3b21996c3978f949af2b7bfa3e9fe1dd4558ebe4 Mon Sep 17 00:00:00 2001 From: Evelyn Eastmond Date: Tue, 13 Nov 2018 19:46:32 -0500 Subject: [PATCH 01/10] Beginning to change CSS/components of alerts to handle multi-line. --- src/components/alerts/alert.css | 9 +++++++++ src/components/alerts/alert.jsx | 31 +++++++++++++++++-------------- src/components/gui/gui.css | 2 +- 3 files changed, 27 insertions(+), 15 deletions(-) diff --git a/src/components/alerts/alert.css b/src/components/alerts/alert.css index ee4c71058..9627ef822 100644 --- a/src/components/alerts/alert.css +++ b/src/components/alerts/alert.css @@ -4,8 +4,10 @@ .alert { width: 100%; + height: auto; display: flex; flex-direction: row; + justify-content: center; overflow: hidden; align-items: left; border-radius: $space; @@ -25,12 +27,17 @@ box-shadow: 0px 0px 0px 2px $extensions-light; } +.alert-spinner { + align-self: center; +} + .alert-icon { margin: $space; vertical-align: middle; } .alert-message { + align-self: center; color: #555; font-weight: bold; font-size: .75rem; @@ -52,6 +59,7 @@ } .connection-button { + height: 31px; padding: 0.55rem 0.9rem; border-radius: 0.35rem; background: #FF8C1A; @@ -63,6 +71,7 @@ cursor: pointer; display: flex; align-items: center; + align-self: center; margin-right: 13px; outline-style:none; } diff --git a/src/components/alerts/alert.jsx b/src/components/alerts/alert.jsx index 04ea672c4..efb1e2030 100644 --- a/src/components/alerts/alert.jsx +++ b/src/components/alerts/alert.jsx @@ -29,21 +29,24 @@ const AlertComponent = ({ + {/* TODO: implement Rtl handling */} +
+ {iconSpinner && ( + + )} +
+
+ {iconURL && ( + + )} +
- {/* TODO: implement Rtl handling */} -
- {iconSpinner && ( - - )} - {iconURL && ( - - )} -
-
- {message} -   - {content} -
+ {message} +   + {content}
{showReconnect && (