diff --git a/app/templates/cotton/config/search.html b/app/templates/cotton/config/search.html
index e0ce04e0..c753eebb 100644
--- a/app/templates/cotton/config/search.html
+++ b/app/templates/cotton/config/search.html
@@ -5,7 +5,23 @@
class="input input-bordered w-full"
placeholder="{% translate 'Search' %}"
_="on input or search
- show < tbody>tr /> in
- when its textContent.toLowerCase() contains my value.toLowerCase()"/>
+ set query to my value.toLowerCase()
+ set rows to tr/> in
+ set paths to []
+ set matches to []
+ repeat for row in rows index i
+ set path to row.getAttribute('data-search-path')
+ if no path then set path to '#' + i + '/' end
+ append path to paths
+ if row.textContent.toLowerCase() contains query then append path to matches end
+ end
+ repeat for row in rows index i
+ set path to paths[i]
+ set keep to false
+ repeat for match in matches
+ if path.startsWith(match) or match.startsWith(path) then set keep to true end
+ end
+ if keep then show row else hide row end
+ end"/>
diff --git a/app/templates/insights/fragments/category_overview/index.html b/app/templates/insights/fragments/category_overview/index.html
index 2083dbb5..0ef018bf 100644
--- a/app/templates/insights/fragments/category_overview/index.html
+++ b/app/templates/insights/fragments/category_overview/index.html
@@ -92,7 +92,7 @@
{% for category in total_table.values %}
{# Category row #}
-
+
| {% if category.name %}{{ category.name }}{% else %}{% trans 'Uncategorized' %}{% endif %} |
{% for currency in category.currencies.values %}
@@ -184,7 +184,8 @@
{% if show_tags %}
{% for tag_id, tag in category.tags.items %}
{% if tag.name or not tag.name and category.tags.values|length > 1 %}
- |
+
|
{% if tag.name %}{{ tag.name }}{% else %}{% trans 'Untagged' %}{% endif %}
|
@@ -277,7 +278,8 @@
{% if show_entities %}
{% for entity_id, entity in tag.entities.items %}
{% if entity.name or not entity.name and tag.entities.values|length > 1 %}
-
+
|
{% if entity.name %}{{ entity.name }}{% else %}{% trans 'No entity' %}{% endif %}
|