From d12681720da9c217e7eecf390a98c4369220b0ac Mon Sep 17 00:00:00 2001 From: bruno Date: Wed, 2 Sep 2026 13:20:56 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20ic=C3=B4nes=20SVG=20affich=C3=A9es=20en?= =?UTF-8?q?=20texte=20brut=20dans=20les=20sous-r=C3=A9pertoires=20Gitea=20?= =?UTF-8?q?(sidebar)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit loadSubdir() créait les icônes des enfants avec textContent au lieu de innerHTML : le markup SVG () retourné par getSvgIcon() était affiché comme texte brut quand on ouvrait un répertoire de la section Gitea. Le rendu racine (loadSidebarTree) utilisait déjà innerHTML ; aligné. --- app/templates/gitea_workspace.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/templates/gitea_workspace.html b/app/templates/gitea_workspace.html index 740e92d..11dc3e5 100644 --- a/app/templates/gitea_workspace.html +++ b/app/templates/gitea_workspace.html @@ -290,7 +290,7 @@ document.addEventListener('alpine:init', () => { // Icon var iconSpan = document.createElement('span'); iconSpan.className = 'sidebar-icon'; - iconSpan.textContent = icon; + iconSpan.innerHTML = icon; // icon = HTML SVG from getSvgIcon(), NOT text li.appendChild(iconSpan); // Name var nameSpan = document.createElement('span');