test instant preview
Build and Deploy Documentation / build-and-deploy (push) Successful in 26s

This commit is contained in:
2026-03-03 23:42:50 +01:00
parent 2fd4a325dd
commit e6d94157b5
6 changed files with 82 additions and 47 deletions
+15
View File
@@ -0,0 +1,15 @@
document$.subscribe(({ document }) => {
const elements = document.querySelectorAll("[data-image-tooltip]")
elements.forEach(el => {
const img = el.getAttribute("data-image-tooltip")
if (el._tooltipInitialized) return
el._tooltipInitialized = true
window.document$.app?.tooltip?.create(el, {
html: `<img src="${img}" style="max-width:200px;">`,
interactive: true
})
})
})