From 50ea605c06d1a5b0a7e95a8ca71ef78ca6ba64af Mon Sep 17 00:00:00 2001 From: Yurii Date: Mon, 2 Feb 2026 18:37:47 +0200 Subject: [PATCH] fix list with category use icon in header --- client/src/views/list-with-categories.js | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/client/src/views/list-with-categories.js b/client/src/views/list-with-categories.js index ad7819041f..d2d980cdf8 100644 --- a/client/src/views/list-with-categories.js +++ b/client/src/views/list-with-categories.js @@ -777,13 +777,18 @@ class ListWithCategories extends ListView { rootUrl += `/list/primaryFilter=${filterPart}`; } - const root = document.createElement('a'); - root.href = rootUrl; - root.textContent = this.translate(this.scope, 'scopeNamesPlural'); - root.dataset.action = 'openCategory'; - root.classList.add('action'); + const root = document.createElement('span'); root.style.userSelect = 'none'; + const a = document.createElement('a'); + a.href = rootUrl; + a.textContent = this.translate(this.scope, 'scopeNamesPlural'); + a.dataset.action = 'openCategory'; + a.classList.add('action'); + a.style.userSelect = 'none'; + + root.append(a); + const iconHtml = this.getHeaderIconHtml(); if (iconHtml) {