mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Fix icon rendering for file dropdown across all apps finallyy
This commit is contained in:
parent
191dc7c5ed
commit
50875709fc
@ -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 () {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user