From c328b8a2bd6d07f6352868dfaa7c9c49d8a1983a Mon Sep 17 00:00:00 2001 From: Manuel Cilurzo Date: Thu, 31 Aug 2023 08:12:19 +0200 Subject: [PATCH] fixed tooltip placement --- src/_includes/icons/index.njk | 9 +++--- src/_includes/icons/item.njk | 18 +++-------- src/_includes/icons/list-icons.njk | 8 ++--- src/_includes/icons/list-tooltips.njk | 46 ++++++++++++++------------- 4 files changed, 35 insertions(+), 46 deletions(-) diff --git a/src/_includes/icons/index.njk b/src/_includes/icons/index.njk index 098f9943b..ba556f34e 100644 --- a/src/_includes/icons/index.njk +++ b/src/_includes/icons/index.njk @@ -10,6 +10,7 @@ {% endif %} {% endfor %} +
@@ -22,12 +23,12 @@
{% include "./list-icons.njk" %}
-
- {% include "./list-tooltips.njk" %} -
{% include "./not-found.njk" %} - + +
+ {% include "./list-tooltips.njk" %} +
{% if mode == "KOM" %} diff --git a/src/_includes/icons/item.njk b/src/_includes/icons/item.njk index 2de98e08c..8c338ba45 100644 --- a/src/_includes/icons/item.njk +++ b/src/_includes/icons/item.njk @@ -1,15 +1,5 @@ +{% if (icon.type == mode) %} - - - \ No newline at end of file + + +{% endif %} \ No newline at end of file diff --git a/src/_includes/icons/list-icons.njk b/src/_includes/icons/list-icons.njk index 3e0e4f548..e39cf0a57 100644 --- a/src/_includes/icons/list-icons.njk +++ b/src/_includes/icons/list-icons.njk @@ -1,9 +1,5 @@ {% for category in categories %} - {{category}} - {% for icon in icons %} - {% if category == icon.category %} - {% include "./item.njk" %} - {% endif %} - {% endfor %} +{{category}} +{% for icon in icons %}{% if category == icon.category %}{% include "./item.njk" %}{% endif %}{% endfor %} {% endfor %} diff --git a/src/_includes/icons/list-tooltips.njk b/src/_includes/icons/list-tooltips.njk index 6234729eb..ec9dd67f5 100644 --- a/src/_includes/icons/list-tooltips.njk +++ b/src/_includes/icons/list-tooltips.njk @@ -1,26 +1,28 @@ {% for icon in icons %} - -
- {{ icon.name }} -

- {{ translations[page.lang].iconcategory }}: {{ icon.category }}
- {% if mode == "Pictograms" %} - {% else %} - {{ translations[page.lang].icontags }}: {{ icon.tags }} - {% endif %} -

- {% if mode == "KOM" %} -
- {% for size in icon.sizes %} -
-
- -
-

{{size}}

+{% if (icon.type == mode) %} + +
+ {{ icon.name }} +

+ {{ translations[page.lang].iconcategory }}: {{ icon.category }}
+ {% if mode == "Pictograms" %} + {% else %} + {{ translations[page.lang].icontags }}: {{ icon.tags }} + {% endif %} +

+ {% if mode == "KOM" %} +
+ {% for size in icon.sizes %} +
+
+
- {% endfor %} +

{{size}}

- {% endif %} -
- + {% endfor %} +
+ {% endif %} +
+ +{% endif %} {% endfor %} \ No newline at end of file