From 4d0e19094597bcaf62d21485a072f18785b39c3d Mon Sep 17 00:00:00 2001
From: bobzel <zzzman@gmail.com>
Date: Mon, 8 Mar 2021 13:10:23 -0500
Subject: fixed zindex of modal dialogues (eg sharingmanager) to be above doc
 decorations.

---
 src/client/views/MainViewModal.tsx | 22 +++++++++-------------
 1 file changed, 9 insertions(+), 13 deletions(-)

(limited to 'src/client/views/MainViewModal.tsx')

diff --git a/src/client/views/MainViewModal.tsx b/src/client/views/MainViewModal.tsx
index 34e0ff126..7f91c0079 100644
--- a/src/client/views/MainViewModal.tsx
+++ b/src/client/views/MainViewModal.tsx
@@ -21,19 +21,17 @@ export class MainViewModal extends React.Component<MainViewOverlayProps> {
         const dialogueOpacity = p.dialogueBoxDisplayedOpacity || 1;
         const overlayOpacity = p.overlayDisplayedOpacity || 0.4;
         return !p.isDisplayed ? (null) : (
-            <div style={{
+            <div className="mainViewModal-cont" style={{
                 pointerEvents: p.isDisplayed && p.interactive ? "all" : "none"
             }}>
-                <div
-                    className={"dialogue-box"}
-                    style={{
-                        borderColor: "black",
-                        ...(p.dialogueBoxStyle || {}),
-                        opacity: p.isDisplayed ? dialogueOpacity : 0
-                    }}
-                >{p.contents}</div>
-                <div
-                    className={"overlay"}
+                <div className="dialogue-box" style={{
+                    borderColor: "black",
+                    ...(p.dialogueBoxStyle || {}),
+                    opacity: p.isDisplayed ? dialogueOpacity : 0
+                }} >
+                    {p.contents}
+                </div>
+                <div className="overlay"
                     onClick={this.props?.closeOnExternalClick}
                     style={{
                         backgroundColor: "gainsboro",
@@ -44,6 +42,4 @@ export class MainViewModal extends React.Component<MainViewOverlayProps> {
             </div>
         );
     }
-
-
 }
\ No newline at end of file
-- 
cgit v1.2.3-70-g09d2

