fix hidden/hanging tooltips
3clyp50 committed
Jan 4, 2026 at 03:53 UTC
67256cc5fa7834b85220372466f6af91e887ac96
2 files changed
+5
-1
webui/index.css
+2
-1
@@ -132,7 +132,8 @@ body,
132
/* Bootstrap-like tooltips */
133
.tooltip {
134
position: absolute;
135
- z-index: 1080;
135
+ /* Above custom modals (base z-index: 3000 in `webui/js/modals.js`) */
136
+ z-index: 5000;
137
display: block;
138
margin: 0;
139
font-family: var(--font-family-main);
webui/js/modals.js
+3
@@ -177,6 +177,9 @@ export function openModal(modalPath) {
177
export function closeModal(modalPath = null) {
178
if (modalStack.length === 0) return;
179
180
+ // Ensure any visible tooltips are hidden before removing modal DOM.
181
+ tooltipsStore.hideAll();
182
+
183
let modalIndex = modalStack.length - 1; // Default to last modal
184
let modal;
185