Started work on userlist profile tooltips and context menus.

This commit is contained in:
rainbow napkin 2025-01-07 01:42:54 -05:00
parent 9df7f52e9e
commit 9a8def18d7
16 changed files with 372 additions and 22 deletions

View file

@ -307,20 +307,7 @@ class adminUserList{
//Splice username out of class name
const name = userName.id.replace('admin-user-list-name-','');
//When the mouse starts to hover
userName.addEventListener('mouseenter',(event)=>{
//Create the tooltip
const tooltip = new canopyUXUtils.tooltip(`altList?user=${name}`, true);
//Do intial mouse move
tooltip.moveToMouse(event);
//Move the tooltip with the mouse
userName.addEventListener('mousemove', tooltip.moveToMouse.bind(tooltip));
//remove the tooltip on mouseleave
userName.addEventListener('mouseleave', tooltip.remove.bind(tooltip));
});
userName.addEventListener('mouseenter',(event)=>{utils.ux.displayTooltip(event, `altList?user=${name}`, true);});
}
for(let rankSelector of this.rankSelectors){