make tooltip hoverable
This commit is contained in:
parent
fbfb392aeb
commit
06fb10436d
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue