[Plugins] Fix style for transparent plugin window

This commit is contained in:
Julia.Radzhabova
2025-07-09 15:44:32 +03:00
parent 05025ca395
commit c0734fca77
3 changed files with 9 additions and 4 deletions

View File

@ -704,7 +704,7 @@ define([
var renderto = this.initConfig.renderTo || document.body;
$(renderto).append(
_.template(this.initConfig.transparent ? templateTransparent : template)(this.initConfig)
_.template(template)(this.initConfig)
);
this.$window = $('#' + this.initConfig.id);

View File

@ -1187,7 +1187,7 @@ define([
var help = variation.help;
me.customPluginsDlg[frameId] = new Common.Views.PluginDlg({
cls: isCustomWindow ? 'plain' : '',
cls: (isCustomWindow ? 'plain' : '') + (variation.transparent ? ' ' + 'no-background' : ''),
header: !isCustomWindow,
title: description,
width: size[0], // inner width
@ -1200,8 +1200,7 @@ define([
},
help: !!help,
isCanDocked: variation.isCanDocked,
modal: isModal!==undefined ? isModal : true,
transparent: variation.transparent || false
modal: isModal!==undefined ? isModal : true
});
me.customPluginsDlg[frameId].on({
'render:after': function(obj){

View File

@ -326,6 +326,12 @@
}
}
&.no-background {
&, .body {
background:transparent;
}
}
.resize-border {
position: absolute;
width: 5px;