mirror of
https://github.com/falsycat/ar.falsy.cat.git
synced 2024-12-25 00:04:52 +00:00
fix popover is too big
This commit is contained in:
parent
ee705aa8be
commit
e5e9a644c7
@ -33,7 +33,7 @@ function initPopover(baseURL, useContextualBacklinks) {
|
|||||||
}
|
}
|
||||||
const popoverElement = `<div class="popover">
|
const popoverElement = `<div class="popover">
|
||||||
<h3>${linkDest.title}</h3>
|
<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>
|
<p class="meta">${new Date(linkDest.lastmodified).toLocaleDateString()}</p>
|
||||||
</div>`
|
</div>`
|
||||||
el = htmlToElement(popoverElement)
|
el = htmlToElement(popoverElement)
|
||||||
|
Loading…
Reference in New Issue
Block a user