fix(mobile): selecting random elements while context menu is shown

This commit is contained in:
Elian Doran 2024-12-28 11:07:44 +02:00
parent bd10babd1b
commit 04a3ed5642
No known key found for this signature in database
4 changed files with 14 additions and 1 deletions

View File

@ -63,6 +63,7 @@ class ContextMenu {
}
this.$cover.addClass("show");
$("body").addClass("context-menu-shown");
this.$widget.empty();
@ -223,6 +224,7 @@ class ContextMenu {
await timeout(100);
this.$widget.removeClass("show");
this.$cover.removeClass("show");
$("body").removeClass("context-menu-shown");
this.$widget.hide();
}
}

View File

@ -48,6 +48,11 @@ body.mobile .desktop-only {
display: none !important;
}
body.mobile.context-menu-shown * {
user-select: none !important;
-webkit-user-select: none !important;
}
a {
text-decoration: none;
}
@ -977,6 +982,8 @@ a.external:not(.no-arrow):after, a[href^="http://"]:not(.no-arrow):after, a[href
#context-menu-container .dropdown-item {
padding: 0 7px 0 10px;
cursor: pointer;
user-select: none;
-webkit-user-select: none;
}
body.desktop li.dropdown-submenu:hover > ul.dropdown-menu {

View File

@ -491,8 +491,10 @@ body.mobile #context-menu-container {
right: 0 !important;
bottom: 0 !important;
top: unset !important;
max-height: 90vh;
max-height: 70vh;
overflow: auto !important;
user-select: none;
-webkit-user-select: none;
}
/* Tree actions toolbar */

View File

@ -40,6 +40,8 @@ span.fancytree-node.fancytree-hide {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
user-select: none !important;
-webkit-user-select: none !important;
}
.fancytree-node:not(.fancytree-loading) .fancytree-expander {