Merge pull request 'fix bug 77240' (#508) from fix/bug-77240 into release/v9.2.0

This commit is contained in:
Maxim Kadushkin
2025-11-03 09:13:21 +00:00
2 changed files with 5 additions and 6 deletions

View File

@ -2693,12 +2693,11 @@ li.menu-item {
margin-left: 16px;
}
.icon--default {
border: initial;
}
.icon {
display:none;
}
.icon, .icon--default {
border: @scaled-one-px solid @border-divider;
border-radius: 4px;
width: 475px;

View File

@ -5,7 +5,7 @@ function PreviewTemplateDialog(model, params = {}) {
const bodyTemplate = `
<div class="template-preview-body">
<div class="img-container">
<svg class='icon--default'><use xlink:href='#template-item'></use></svg>
<img class='icon--default' src="${model.icon}">
<img class="icon" src="${model.preview}" style="display:none;">
</div>
<div class="description">
@ -55,7 +55,7 @@ PreviewTemplateDialog.prototype.show = function(width) {
const {$el} = this.getElements();
const $img = $el.find('img.icon');
const $icon = $el.find('svg.icon--default');
const $icon = $el.find('img.icon--default');
$img.on('load', () => {
$icon.hide();