mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-25 16:02:46 +08:00
[common] Fix bug 67538
This commit is contained in:
@ -960,14 +960,14 @@ define([
|
||||
me.options.scaling = ratio;
|
||||
|
||||
if (ratio > 2) {
|
||||
if (!me.$el.find('svg.icon').length) {
|
||||
const iconCls = me.iconCls || me.$el.find('i.icon').attr('class');
|
||||
const $el = me.$el.is('button') ? me.$el : me.$el.find('button:first');
|
||||
if (!$el.find('svg.icon').length) {
|
||||
const iconCls = me.iconCls || $el.find('i.icon').attr('class');
|
||||
const re_icon_name = /btn-[^\s]+/.exec(iconCls);
|
||||
const icon_name = re_icon_name ? re_icon_name[0] : "null";
|
||||
const rtlCls = (iconCls ? iconCls.indexOf('icon-rtl') : -1) > -1 ? 'icon-rtl' : '';
|
||||
const svg_icon = '<svg class="icon %rtlCls"><use class="zoom-int" href="#%iconname"></use></svg>'.replace('%iconname', icon_name).replace('%rtlCls', rtlCls);
|
||||
|
||||
me.$el.find('i.icon').after(svg_icon);
|
||||
$el.find('i.icon').after(svg_icon);
|
||||
}
|
||||
} else {
|
||||
if (!me.$el.find('i.icon')) {
|
||||
|
||||
Reference in New Issue
Block a user