From c0734fca773b0f685d67f07e238ba0e6e8389a0f Mon Sep 17 00:00:00 2001 From: "Julia.Radzhabova" Date: Wed, 9 Jul 2025 15:44:32 +0300 Subject: [PATCH] [Plugins] Fix style for transparent plugin window --- apps/common/main/lib/component/Window.js | 2 +- apps/common/main/lib/controller/Plugins.js | 5 ++--- apps/common/main/resources/less/window.less | 6 ++++++ 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/apps/common/main/lib/component/Window.js b/apps/common/main/lib/component/Window.js index 7c248b0256..f62441e041 100644 --- a/apps/common/main/lib/component/Window.js +++ b/apps/common/main/lib/component/Window.js @@ -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); diff --git a/apps/common/main/lib/controller/Plugins.js b/apps/common/main/lib/controller/Plugins.js index b9084995e0..126ef1f561 100644 --- a/apps/common/main/lib/controller/Plugins.js +++ b/apps/common/main/lib/controller/Plugins.js @@ -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){ diff --git a/apps/common/main/resources/less/window.less b/apps/common/main/resources/less/window.less index 4e41b32e7e..bb966690e1 100644 --- a/apps/common/main/resources/less/window.less +++ b/apps/common/main/resources/less/window.less @@ -326,6 +326,12 @@ } } + &.no-background { + &, .body { + background:transparent; + } + } + .resize-border { position: absolute; width: 5px;