From b21f723eee6342adb8d1634c7313750a2bfb2e9d Mon Sep 17 00:00:00 2001 From: Aakansha Doshi Date: Thu, 2 Jul 2020 18:57:47 +0530 Subject: [PATCH] use absolute positioning instead of fixed (#1860) --- public/app.css | 2 +- src/components/FixedSideContainer.css | 2 +- src/components/LayerUI.tsx | 42 +++++++++++++++------------ src/css/styles.scss | 9 +++--- 4 files changed, 30 insertions(+), 25 deletions(-) diff --git a/public/app.css b/public/app.css index 929a453cd..c8b1a5625 100644 --- a/public/app.css +++ b/public/app.css @@ -8,7 +8,7 @@ } .LoadingMessage { - position: fixed; + position: absolute; top: 0; right: 0; bottom: 0; diff --git a/src/components/FixedSideContainer.css b/src/components/FixedSideContainer.css index 1e1ab69e5..d6153e567 100644 --- a/src/components/FixedSideContainer.css +++ b/src/components/FixedSideContainer.css @@ -1,6 +1,6 @@ .FixedSideContainer { --margin: 0.25rem; - position: fixed; + position: absolute; pointer-events: none; } diff --git a/src/components/LayerUI.tsx b/src/components/LayerUI.tsx index 9f52b919c..3f1734517 100644 --- a/src/components/LayerUI.tsx +++ b/src/components/LayerUI.tsx @@ -224,29 +224,32 @@ const LayerUI = ({ ))} - { -
- -
- - - - {renderEncryptedIcon()} -
-
-
- } ); }; + const renderBottomAppMenu = () => { + return ( +
+ +
+ + + + {renderEncryptedIcon()} +
+
+
+ ); + }; + const renderFooter = () => (