From 945569cfaba3b1ebdf95e86e9d60965a0d547ad7 Mon Sep 17 00:00:00 2001 From: JFH <20402845+jfhenon@users.noreply.github.com> Date: Sun, 15 Aug 2021 12:39:12 +0200 Subject: [PATCH] fix menu popups --- src/editor/components/seExplorerButton.js | 11 +++++------ src/editor/components/seFlyingButton.js | 4 ++-- src/editor/templates/rulersTemplate.js | 3 --- 3 files changed, 7 insertions(+), 11 deletions(-) diff --git a/src/editor/components/seExplorerButton.js b/src/editor/components/seExplorerButton.js index 0caf6d94..d1926dfd 100644 --- a/src/editor/components/seExplorerButton.js +++ b/src/editor/components/seExplorerButton.js @@ -48,16 +48,15 @@ template.innerHTML = ` .button-icon { } .menu { - position: absolute; - top:0px; - left:204px; + position: 'fixed'; + margin-left: 34px; background: none !important; display:none; } .image-lib { - position: absolute; - top: 0px; - left:34px; + position: fixed; + left: 34px; + top: 30%; background: #E8E8E8; display: none; flex-wrap: wrap; diff --git a/src/editor/components/seFlyingButton.js b/src/editor/components/seFlyingButton.js index b083d211..51298a3a 100644 --- a/src/editor/components/seFlyingButton.js +++ b/src/editor/components/seFlyingButton.js @@ -46,10 +46,10 @@ template.innerHTML = ` .button-icon { } .menu { - position: absolute; - left:32px; + position: fixed; background: none !important; display:none; + margin-left: 34px; } .open { display: flex; diff --git a/src/editor/templates/rulersTemplate.js b/src/editor/templates/rulersTemplate.js index 497c7b9b..e833cc56 100644 --- a/src/editor/templates/rulersTemplate.js +++ b/src/editor/templates/rulersTemplate.js @@ -11,7 +11,6 @@ rulersTemplate.innerHTML = ` grid-area: corner; width: 15px; height: 15px; - z-index: 1; overflow: hidden; } @@ -21,7 +20,6 @@ rulersTemplate.innerHTML = ` height: 15px; border-bottom: 1px solid; border-left: 1px solid #777; - z-index: 1; overflow: hidden; } @@ -31,7 +29,6 @@ rulersTemplate.innerHTML = ` width: 15px; border-right: 1px solid; border-top: 1px solid #777; - z-index: 1; overflow: hidden; }