mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-04-21 00:01:29 +02:00
feat: oh look, more changes
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import tippy from 'tippy.js';
|
||||
import { delegate } from 'tippy.js';
|
||||
import 'tippy.js/dist/tippy.css';
|
||||
import 'tippy.js/themes/light-border.css';
|
||||
|
||||
@@ -13,10 +13,15 @@ function initiateTooltips() {
|
||||
theme = 'dark';
|
||||
}
|
||||
|
||||
tippy('[data-tippy-content]', {
|
||||
delegate(document.body, {
|
||||
target: '[data-tippy-content]',
|
||||
theme: theme,
|
||||
zIndex: 1050,
|
||||
zIndex: 1100,
|
||||
content(reference) {
|
||||
return reference.getAttribute('data-tippy-content');
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
window.initiateTooltips = initiateTooltips;
|
||||
// Call it once on page load
|
||||
initiateTooltips();
|
||||
|
||||
Reference in New Issue
Block a user