Fix icon rendering for file dropdown across all apps finallyy

This commit is contained in:
DianaXWiki 2025-08-26 14:24:56 +03:00
parent 191dc7c5ed
commit 50875709fc

View File

@ -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 () {