mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 23:03:45 +02:00
Fix menu toggle element element hiding, better mobile support
This commit is contained in:
@@ -75,7 +75,7 @@ code {
|
||||
}
|
||||
|
||||
.hasFileHover * {
|
||||
pointer-events: none;
|
||||
pointer-events: none !important;
|
||||
}
|
||||
|
||||
td.has-progress {
|
||||
@@ -103,3 +103,13 @@ td.has-progress {
|
||||
.use-pointer {
|
||||
cursor: pointer !important;
|
||||
}
|
||||
|
||||
.input-loader {
|
||||
display: none;
|
||||
position:relative;
|
||||
top: -23px;
|
||||
float: right;
|
||||
right: 5px;
|
||||
color: #cccccc;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
@@ -83,7 +83,7 @@ class ContextMenuClass {
|
||||
}
|
||||
|
||||
rightClick() {
|
||||
$('[data-action="toggleMenu"]').on('mousedown', () => {
|
||||
$('[data-action="toggleMenu"]').on('mousedown', event => {
|
||||
event.preventDefault();
|
||||
this.showMenu(event);
|
||||
});
|
||||
@@ -173,8 +173,12 @@ class ContextMenuClass {
|
||||
});
|
||||
}
|
||||
|
||||
$(window).on('click', () => {
|
||||
$(menu).remove();
|
||||
$(window).unbind().on('click', event => {
|
||||
if($(event.target).is('.disable-menu-hide')) {
|
||||
event.preventDefault();
|
||||
return;
|
||||
}
|
||||
$(menu).unbind().remove();
|
||||
if(!_.isNull(this.activeLine)) this.activeLine.removeClass('active');
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user