From 4d0e19094597bcaf62d21485a072f18785b39c3d Mon Sep 17 00:00:00 2001 From: bobzel 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.scss | 52 +++++++++++++++++++++---------------- src/client/views/MainViewModal.tsx | 22 +++++++--------- 2 files changed, 39 insertions(+), 35 deletions(-) (limited to 'src') diff --git a/src/client/views/MainViewModal.scss b/src/client/views/MainViewModal.scss index 812fe540b..5f19590b4 100644 --- a/src/client/views/MainViewModal.scss +++ b/src/client/views/MainViewModal.scss @@ -1,26 +1,34 @@ -.dialogue-box { +.mainViewModal-cont { + pointer-events: all; position: absolute; - z-index: 1000; - text-align: center; - justify-content: center; - align-self: center; - align-content: center; - padding: 20px; - // background: gainsboro; - background: white; - border-radius: 10px; - border: 0.5px solid black; - box-shadow: #00000044 5px 5px 10px; - transform: translate(-50%, -50%); - top: 50%; - left: 50%; - transition: 0.5s all ease; -} - -.overlay { + z-index: 10000; width: 100%; height: 100%; - position: absolute; - z-index: 999; - transition: 0.5s all ease; + .dialogue-box { + position: absolute; + z-index: 1000; + text-align: center; + justify-content: center; + align-self: center; + align-content: center; + padding: 20px; + // background: gainsboro; + background: white; + border-radius: 10px; + border: 0.5px solid black; + box-shadow: #00000044 5px 5px 10px; + transform: translate(-50%, -50%); + top: 50%; + left: 50%; + transition: 0.5s all ease; + } + + .overlay { + width: 100%; + height: 100%; + position: absolute; + z-index: 999; + transition: 0.5s all ease; + } + } \ No newline at end of file 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 { const dialogueOpacity = p.dialogueBoxDisplayedOpacity || 1; const overlayOpacity = p.overlayDisplayedOpacity || 0.4; return !p.isDisplayed ? (null) : ( -
-
{p.contents}
-
+ {p.contents} +
+
{
); } - - } \ No newline at end of file -- cgit v1.2.3-70-g09d2