diff --git a/static/js/messages.js b/static/js/messages.js index 87b2848..4211d8b 100644 --- a/static/js/messages.js +++ b/static/js/messages.js @@ -7,6 +7,16 @@ document.addEventListener("DOMContentLoaded", async function () { messagesList.style="max-height:70vh;overflow: auto;" messagesContainer.appendChild(messagesList); + // Initialize Bootstrap tooltips (delegated) so static and dynamic elements work + if (window.bootstrap && typeof window.bootstrap.Tooltip === "function") { + new window.bootstrap.Tooltip(document.body, { + selector: "[data-bs-toggle='tooltip']", + container: "body" + }); + } else { + console.warn("Bootstrap Tooltip not available; falling back to native titles."); + } + const state = { messages: [], nodesById: {}, @@ -131,7 +141,10 @@ document.addEventListener("DOMContentLoaded", async function () {