summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorJEEEEEEEEEEEEEEEEEEEEEED <118366366+jadjoud@users.noreply.github.com>2024-04-05 11:40:49 +0000
committerEduardo Morales <emoral435@gmail.com>2024-04-08 12:50:45 -0500
commitf203490d03af1e671137e19c2f541f854dbae1c7 (patch)
treee5fe85d259f4a254233c2d9ab54ebe71d7dc2b7e /core/src
parentf33ec17538d6cf3e47b136b27c352e646a92025f (diff)
downloadnextcloud-server-f203490d03af1e671137e19c2f541f854dbae1c7.tar.gz
nextcloud-server-f203490d03af1e671137e19c2f541f854dbae1c7.zip
fix(oc-dialog): Get rid of the overlay
- Icrement Z-index of oc-dialog-dim - Increment z-index of oc-dialog- Insert oc-dialog-dim before oc-dialog Co-authored-by: Co-author RayanBekri <rmt.bekri@gmail.com>" Signed-off-by: JEEEEEEEEEEEEEEEEEEEEEED <118366366+jadjoud@users.noreply.github.com>
Diffstat (limited to 'core/src')
-rw-r--r--core/src/jquery/css/jquery.ocdialog.scss4
-rw-r--r--core/src/jquery/ocdialog.js2
2 files changed, 3 insertions, 3 deletions
diff --git a/core/src/jquery/css/jquery.ocdialog.scss b/core/src/jquery/css/jquery.ocdialog.scss
index 1911dd29dc4..6fba1a78d40 100644
--- a/core/src/jquery/css/jquery.ocdialog.scss
+++ b/core/src/jquery/css/jquery.ocdialog.scss
@@ -4,7 +4,7 @@
border-radius: var(--border-radius-large);
box-shadow: 0 0 30px var(--color-box-shadow);
padding: 24px;
- z-index: 10000;
+ z-index: 100001;
font-size: 100%;
box-sizing: border-box;
min-width: 200px;
@@ -69,7 +69,7 @@
.oc-dialog-dim {
background-color: #000;
opacity: .2;
- z-index: 9999;
+ z-index: 100001;
position: fixed;
top: 0;
left: 0;
diff --git a/core/src/jquery/ocdialog.js b/core/src/jquery/ocdialog.js
index 2d547443be9..75cfdc3ad05 100644
--- a/core/src/jquery/ocdialog.js
+++ b/core/src/jquery/ocdialog.js
@@ -234,7 +234,7 @@ $.widget('oc.ocdialog', {
}
this.overlay = $('<div>')
.addClass('oc-dialog-dim')
- .appendTo(contentDiv)
+ .insertBefore(this.$dialog)
this.overlay.on('click keydown keyup', function(event) {
if (event.target !== self.$dialog.get(0) && self.$dialog.find($(event.target)).length === 0) {
event.preventDefault()