Browse Source

Fix broken Tippy tooltips caused by changes to Tippy's API in version 3

Danielle McLean 3 months ago
parent
commit
b318ed5b06
Signed by: Danielle McLean <dani@00dani.me> GPG Key ID: 8EB789DDF3ABD240
2 changed files with 12 additions and 2 deletions
  1. 6
    1
      home/jinja2/home/index.html
  2. 6
    1
      lemonauth/jinja2/lemonauth/indie.html

+ 6
- 1
home/jinja2/home/index.html View File

@@ -97,6 +97,11 @@
97 97
 
98 98
 {% block foot %}
99 99
     <script type="text/javascript">
100
-      tippy('.profiles [title]', {arrow: true});
100
+      tippy('.profiles [title]', {
101
+        arrow: true,
102
+        content: function(element) {
103
+          return element.getAttribute('title');
104
+        }
105
+      });
101 106
     </script>
102 107
 {% endblock %}

+ 6
- 1
lemonauth/jinja2/lemonauth/indie.html View File

@@ -71,6 +71,11 @@
71 71
 
72 72
 {% block foot %}
73 73
 <script type="text/javascript">
74
-	tippy('[data-tippy-theme]', {arrow: true});
74
+  tippy('[data-tippy-theme]', {
75
+    arrow: true,
76
+    content: function(element) {
77
+      return document.querySelector(element.getAttribute('data-tippy-html')).innerHTML;
78
+    }
79
+  });
75 80
 </script>
76 81
 {% endblock %}

Loading…
Cancel
Save