Commit 5237caa
committed
cockpit: fix overlay clicks — search focus + readout close
Both bugs had one root cause: the vis-network canvas was swallowing
pointer events over the overlays, so the search input never focused (no
cursor / no typing) and the readout ✕ never closed. Node clicks still
worked because they hit the canvas directly.
Fix: give the canvas container its OWN stacking context (zIndex:0,
trapping whatever z-index vis-network assigns its canvas internally) and
lift the overlays above it (zIndex:10 + pointerEvents:auto on the search
panel and the readout). The ✕ also gets a slightly larger hit target.
Node clicks still land — the canvas keeps every region the overlays
don't cover.1 parent 19af902 commit 5237caa
1 file changed
Lines changed: 16 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
| 208 | + | |
| 209 | + | |
208 | 210 | | |
209 | 211 | | |
210 | 212 | | |
| |||
221 | 223 | | |
222 | 224 | | |
223 | 225 | | |
224 | | - | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
225 | 231 | | |
226 | 232 | | |
227 | 233 | | |
| |||
655 | 661 | | |
656 | 662 | | |
657 | 663 | | |
658 | | - | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
659 | 668 | | |
660 | 669 | | |
661 | 670 | | |
662 | 671 | | |
663 | 672 | | |
664 | 673 | | |
665 | 674 | | |
| 675 | + | |
666 | 676 | | |
667 | 677 | | |
668 | 678 | | |
| |||
681 | 691 | | |
682 | 692 | | |
683 | 693 | | |
| 694 | + | |
| 695 | + | |
684 | 696 | | |
685 | 697 | | |
686 | 698 | | |
| |||
761 | 773 | | |
762 | 774 | | |
763 | 775 | | |
| 776 | + | |
764 | 777 | | |
765 | 778 | | |
766 | 779 | | |
| |||
793 | 806 | | |
794 | 807 | | |
795 | 808 | | |
| 809 | + | |
796 | 810 | | |
797 | 811 | | |
798 | 812 | | |
| |||
0 commit comments