From c0f8c53d48dfbf2107e0220bd7ba5804713cf774 Mon Sep 17 00:00:00 2001 From: Gyandeep Singh Date: Tue, 5 Sep 2017 22:48:51 -0500 Subject: [PATCH 1/6] Fix: Some ui quick wins --- components/ConversionPanel.js | 12 ++++++++---- components/Layout.js | 18 +++++------------- 2 files changed, 13 insertions(+), 17 deletions(-) diff --git a/components/ConversionPanel.js b/components/ConversionPanel.js index 2c9a84a..d8a8fcf 100644 --- a/components/ConversionPanel.js +++ b/components/ConversionPanel.js @@ -427,10 +427,14 @@ export default class ConversionPanel extends PureComponent { )} -
- {info} -
+ { + infoType !== "" && ( +
+ {info} +
+ ) + } ); } -} +} \ No newline at end of file diff --git a/components/Layout.js b/components/Layout.js index 7aa90ab..aaf8c81 100644 --- a/components/Layout.js +++ b/components/Layout.js @@ -166,9 +166,8 @@ export default class Layout extends PureComponent { } .nav { - padding: 20px 0; flex: 1; - overflow-y: scroll; + overflow-y: auto; } .twitter { @@ -182,18 +181,12 @@ export default class Layout extends PureComponent { } .footer { - height: 70px; + padding: 10px 5px; text-align: center; color: #fff; font-family: "Lato", sans-serif; } - .footer svg { - height: 36px; - width: 30px; - color: #fff; - } - .badge { display: inline-block; font-size: 12px; @@ -291,9 +284,8 @@ export default class Layout extends PureComponent {
+
Use Ctrl/Cmd + P for quick search
-
Use Ctrl/Cmd + P for quick search
-
-
Created by{" "} + Created by{" "} ); } -} +} \ No newline at end of file From dd6f1e181a9a725a29b9d51a56296ee95ddb14ca Mon Sep 17 00:00:00 2001 From: Gyandeep Singh Date: Tue, 5 Sep 2017 23:32:01 -0500 Subject: [PATCH 2/6] hide success banners after 2 seconds --- components/ConversionPanel.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/components/ConversionPanel.js b/components/ConversionPanel.js index d8a8fcf..1323252 100644 --- a/components/ConversionPanel.js +++ b/components/ConversionPanel.js @@ -194,6 +194,15 @@ export default class ConversionPanel extends PureComponent { scrollbarStyle: null }; + // hide success footer bannner after 2 seconds. Let other types be visible until fixed. + clearTimeout(this.footerTimeout); + if (infoType === "success") { + this.footerTimeout = setTimeout(() => this.setState({ + info: "", + infoType: "" + }), 2000); + } + return (