make tooltip hoverable

This commit is contained in:
John Mavrick 2023-12-21 17:05:10 -08:00
parent fbfb392aeb
commit 06fb10436d
1 changed files with 2 additions and 2 deletions

View File

@ -109,7 +109,7 @@ const Chatbox = ({ annotationFiles, isResponding, messages }: ChatboxProps) => {
} }
const handleAnnotationClick = () => { const handleAnnotationClick = () => {
// open new tab and then navigate to fil // open new tab and then navigate to file
if (app && fileName) { if (app && fileName) {
const file = const file =
app.vault.getAbstractFileByPath( app.vault.getAbstractFileByPath(
@ -131,7 +131,7 @@ const Chatbox = ({ annotationFiles, isResponding, messages }: ChatboxProps) => {
> >
[^{index}] [^{index}]
</a> </a>
<Tooltip id={`tooltip-${index}`}> <Tooltip id={`tooltip-${index}`} clickable>
<div className="annotation-tooltip-container"> <div className="annotation-tooltip-container">
<strong>{fileName}</strong> <strong>{fileName}</strong>
<Markdown>{quote}</Markdown> <Markdown>{quote}</Markdown>