fix: debug panel close button not working

Added event.preventDefault() and event.stopPropagation() to close button handler
to prevent any interference from parent elements.

Also added pointer-events: none to button icons to ensure clicks on the icon
register on the button itself, not the <i> element.

Changes:
- src/systems/ui/debug.js: Added e.preventDefault/stopPropagation to close handler
- src/systems/ui/debug.js: Added console.log for debugging
- style.css: Added pointer-events: none to .rpg-debug-actions button i
This commit is contained in:
Lucas 'Paperboy' Rose-Winters
2025-10-22 07:33:30 +11:00
parent cafb72254e
commit 44240e6840
2 changed files with 8 additions and 1 deletions
+4
View File
@@ -4884,6 +4884,10 @@ body:has(.rpg-panel.rpg-position-left) #sheld {
transform: scale(0.95);
}
.rpg-debug-actions button i {
pointer-events: none; /* Prevent icon from blocking clicks */
}
.rpg-debug-logs {
flex: 1;
overflow-y: auto;