fix popover is too big

This commit is contained in:
falsycat 2023-06-18 17:24:54 +09:00
parent ee705aa8be
commit e5e9a644c7
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ function initPopover(baseURL, useContextualBacklinks) {
}
const popoverElement = `<div class="popover">
<h3>${linkDest.title}</h3>
<p>${cleanedContent.split(" ", 20).join(" ")}...</p>
<p>${cleanedContent.split("\n", 5).join(" | ")}...</p>
<p class="meta">${new Date(linkDest.lastmodified).toLocaleDateString()}</p>
</div>`
el = htmlToElement(popoverElement)