mirror of
https://github.com/HeyPuter/puter
synced 2024-11-15 06:15:47 +00:00
Fix the issue of checkmark's wrong color in ctx menu disabled items on hover
This commit is contained in:
parent
16d5ac6abb
commit
7c8492ba43
@ -176,7 +176,7 @@ function UIContextMenu(options){
|
||||
return false;
|
||||
});
|
||||
|
||||
// This will hold the timer for the submenu delay
|
||||
// This will hold the timer for the submenu delay:
|
||||
// There is a delay in opening the submenu, this is to make sure that if the mouse is
|
||||
// just passing over the item, the submenu doesn't open immediately.
|
||||
let submenu_delay_timer;
|
||||
@ -254,7 +254,7 @@ function UIContextMenu(options){
|
||||
}
|
||||
});
|
||||
|
||||
// useful in cases such as where a menu item is over a window, this prevents from the mousedown event
|
||||
// Useful in cases such as where a menu item is over a window, this prevents from the mousedown event
|
||||
// reaching the window underneath
|
||||
$(`#context-menu-${menu_id} > li:not(.context-menu-item-disabled)`).on('mousedown', function (e) {
|
||||
e.preventDefault();
|
||||
@ -262,7 +262,7 @@ function UIContextMenu(options){
|
||||
return false;
|
||||
})
|
||||
|
||||
//disable parent scroll
|
||||
// Disable parent scroll
|
||||
if(options.parent_element){
|
||||
$(options.parent_element).css('overflow', 'hidden');
|
||||
$(options.parent_element).parent().addClass('children-have-open-contextmenu');
|
||||
|
@ -1616,6 +1616,9 @@ span.header-sort-icon img {
|
||||
|
||||
.context-menu .context-menu-item-active .context-menu-item-icon-active {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.context-menu .context-menu-item-active:not(.context-menu-item-disabled) .context-menu-item-icon-active {
|
||||
color: white;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user