diff --git a/assets/controllers/materialize/tooltip_controller.js b/assets/controllers/materialize/tooltip_controller.js new file mode 100644 index 000000000..99f2acf3a --- /dev/null +++ b/assets/controllers/materialize/tooltip_controller.js @@ -0,0 +1,12 @@ +import { Controller } from '@hotwired/stimulus'; +import M from '@materializecss/materialize'; + +export default class extends Controller { + connect() { + this.instance = M.Tooltip.init(this.element); + } + + disconnect() { + this.instance.destroy(); + } +} diff --git a/assets/index.js b/assets/index.js index a40231542..675db5dab 100755 --- a/assets/index.js +++ b/assets/index.js @@ -285,7 +285,6 @@ $(document).ready(() => { constrainWidth: false, }); - $('.tooltipped').tooltip(); $('.fixed-action-btn').floatingActionButton(); stickyNav(); diff --git a/templates/Config/index.html.twig b/templates/Config/index.html.twig index 1b4a6a055..585725a19 100644 --- a/templates/Config/index.html.twig +++ b/templates/Config/index.html.twig @@ -32,7 +32,7 @@ {{ form_label(form.config.items_per_page) }}
- + live_help
@@ -47,7 +47,7 @@
- + live_help
@@ -64,7 +64,7 @@

- + live_help
@@ -85,7 +85,7 @@ {{ form_label(form.config.language) }}
- + live_help
@@ -102,7 +102,7 @@

- + live_help
@@ -125,7 +125,7 @@ {{ form_label(form.config.font) }}
- + live_help
@@ -136,7 +136,7 @@ {{ form_label(form.config.lineHeight, null, {'label_attr': {'class': 'settings-range-label'}}) }}
- + live_help
@@ -149,7 +149,7 @@ {{ form_label(form.config.fontsize, null, {'label_attr': {'class': 'settings-range-label'}}) }}
- + live_help
@@ -160,7 +160,7 @@ {{ form_label(form.config.maxWidth, null, {'label_attr': {'class': 'settings-range-label'}}) }}
- + live_help
diff --git a/templates/Entry/entries.html.twig b/templates/Entry/entries.html.twig index d6805027f..59027431f 100644 --- a/templates/Entry/entries.html.twig +++ b/templates/Entry/entries.html.twig @@ -24,21 +24,21 @@ {% block nav_panel_extra_actions %} {% if active_route %}
  • - + casino
  • {% endif %} {% if has_filters %}
  • - + filter_list
  • {% endif %} {% if has_exports %}
  • - + file_download
  • @@ -61,7 +61,7 @@ {% if list_mode == 0 %}view_list{% else %}view_module{% endif %} {% endif %} {% if entries.count > 0 and is_granted('EDIT_ENTRIES') %} - + {% endif %} {% if app.user.config.feedToken %} {% include "Entry/_feed_link.html.twig" %} diff --git a/templates/layout.html.twig b/templates/layout.html.twig index debb71ac9..172dab47a 100644 --- a/templates/layout.html.twig +++ b/templates/layout.html.twig @@ -90,18 +90,18 @@