Browse Source

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

tags/v1.10.2
Danielle McLean 1 year ago
parent
commit
b318ed5b06
Signed by: 00dani <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 @@

{% block foot %}
<script type="text/javascript">
tippy('.profiles [title]', {arrow: true});
tippy('.profiles [title]', {
arrow: true,
content: function(element) {
return element.getAttribute('title');
}
});
</script>
{% endblock %}

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

@@ -71,6 +71,11 @@

{% block foot %}
<script type="text/javascript">
tippy('[data-tippy-theme]', {arrow: true});
tippy('[data-tippy-theme]', {
arrow: true,
content: function(element) {
return document.querySelector(element.getAttribute('data-tippy-html')).innerHTML;
}
});
</script>
{% endblock %}

Loading…
Cancel
Save