* more tooltip fixes

* cleanup
This commit is contained in:
bread
2026-01-22 00:19:10 -08:00
committed by GitHub
parent 7af5eb1e25
commit 170ef97f33
18 changed files with 43 additions and 53 deletions

View File

@@ -34,7 +34,7 @@ export function replaceNoteLink(md: MarkdownRenderer) {
const rendered = md.render(content)
const props = title ? `title="${title.replace(/"/g, '"')}"` : ''
const footer = `<div class="mt-2 text-right opacity-50 text-xs"><a href="${href}">Source</a></div>`
const footer = `<div class="mt-2 text-right opacity-50 text-xs"><a class="tooltip-source-link" href="${href}">Source</a></div>`
tooltip.content = `<Tooltip ${props}>${rendered}${footer}</Tooltip>`
children.splice(i, j - i + 1, tooltip)