From 50875709fceaea400a334be6e53f201f61fdca97 Mon Sep 17 00:00:00 2001 From: DianaXWiki Date: Tue, 26 Aug 2025 14:24:56 +0300 Subject: [PATCH] Fix icon rendering for file dropdown across all apps finallyy --- www/common/common-ui-elements.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index 078db3f15..00f4c69c7 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -648,7 +648,8 @@ define([ UIElements.getEntryFromButton = function ($button) { if (!$button || !$button.length) { return; } - let $icon = $button.find('> i'); + let $icon = $button.children('svg,i,[data-lucide]').first(); + if (!$icon.length) $icon = $button.find('svg,i,[data-lucide]').first(); let attributes = {}; let btnClass = $button.attr('class'); @@ -663,7 +664,7 @@ define([ tag: 'a', attributes: attributes, content: [ - Icons.get($icon.attr('class')), + $icon.length ? $icon.clone()[0] : null,, h('span', $button.text()) ], action: function () {