enh: CitationsModal

This commit is contained in:
Jannik Streidl
2024-09-23 15:48:12 +02:00
parent 291b6dd744
commit ac277e8e9e
3 changed files with 30 additions and 15 deletions

View File

@@ -5,6 +5,7 @@
import { marked } from 'marked';
import tippy from 'tippy.js';
import 'tippy.js/animations/perspective.css';
import { roundArrow } from 'tippy.js';
export let placement = 'top';
@@ -13,6 +14,7 @@
export let className = 'flex';
export let theme = '';
export let allowHTML = true;
export let tippyOptions = {};
let tooltipElement;
let tooltipInstance;
@@ -28,7 +30,8 @@
touch: touch,
...(theme !== '' ? { theme } : { theme: 'dark' }),
arrow: false,
offset: [0, 4]
offset: [0, 4],
...tippyOptions
});
}
} else if (tooltipInstance && content === '') {