diff --git a/apps/common/main/lib/view/Plugins.js b/apps/common/main/lib/view/Plugins.js
index 75ed76e8b..37c97cc1d 100644
--- a/apps/common/main/lib/view/Plugins.js
+++ b/apps/common/main/lib/view/Plugins.js
@@ -60,11 +60,11 @@ define([
'',
'',
'
',
+ '
',
+ '
',
'',
- '
',
'
',
''
@@ -111,6 +111,13 @@ define([
this.currentPluginPanel = $('#current-plugin-box');
this.currentPluginFrame = $('#current-plugin-frame');
+ this.pluginClose = new Common.UI.Button({
+ parentEl: $('#id-plugin-close'),
+ cls: 'btn-toolbar',
+ iconCls: 'toolbar__icon btn-close',
+ hint: this.textClosePanel
+ });
+
this.pluginMenu = new Common.UI.Menu({
menuAlign : 'tr-br',
items: []
@@ -426,7 +433,8 @@ define([
textLoading: 'Loading',
textStart: 'Start',
textStop: 'Stop',
- groupCaption: 'Plugins'
+ groupCaption: 'Plugins',
+ textClosePanel: 'Close plugin'
}, Common.Views.Plugins || {}));
});
\ No newline at end of file
diff --git a/apps/common/main/resources/less/plugins.less b/apps/common/main/resources/less/plugins.less
index bc9d154fd..1bba907aa 100644
--- a/apps/common/main/resources/less/plugins.less
+++ b/apps/common/main/resources/less/plugins.less
@@ -80,17 +80,20 @@
#current-plugin-header {
position: absolute;
- top: 0;
+ height: 45px;
left: 0;
- width: 100%;
- height: 38px;
- padding: 10px 12px;
+ top: 0;
+ right: 0;
+ padding: 12px;
+ overflow: hidden;
border-bottom: @scaled-one-px-value-ie solid @border-toolbar-ie;
border-bottom: @scaled-one-px-value solid @border-toolbar;
-
+
label {
width: 100%;
+ margin-top: 2px;
padding-right: 20px;
+ font-size: 12px;
.font-weight-bold();
overflow: hidden;
text-overflow: ellipsis;
@@ -98,20 +101,18 @@
}
}
- .tool {
+ .close {
position: absolute;
- top: 9px;
- right: 7px;
- margin: 0;
- /*&:before, &:after {
- width: 2px;
- width: @scaled-two-px-value;
- }*/
+ width: 20px;
+ height: 20px;
+ top: 12px;
+ right: 12px;
}
+
#current-plugin-frame {
width: 100%;
height: 100%;
- padding-top: 38px;
+ padding-top: 45px;
}
}
diff --git a/apps/documenteditor/main/locale/en.json b/apps/documenteditor/main/locale/en.json
index 798ea77eb..8c2bd088d 100644
--- a/apps/documenteditor/main/locale/en.json
+++ b/apps/documenteditor/main/locale/en.json
@@ -347,6 +347,7 @@
"Common.Views.Plugins.textLoading": "Loading",
"Common.Views.Plugins.textStart": "Start",
"Common.Views.Plugins.textStop": "Stop",
+ "Common.Views.Plugins.textClosePanel": "Close plugin",
"Common.Views.Protection.hintAddPwd": "Encrypt with password",
"Common.Views.Protection.hintPwd": "Change or delete password",
"Common.Views.Protection.hintSignature": "Add digital signature or signature line",
diff --git a/apps/presentationeditor/main/locale/en.json b/apps/presentationeditor/main/locale/en.json
index 5dabb151e..3c4325c4c 100644
--- a/apps/presentationeditor/main/locale/en.json
+++ b/apps/presentationeditor/main/locale/en.json
@@ -449,6 +449,7 @@
"Common.Views.Plugins.textLoading": "Loading",
"Common.Views.Plugins.textStart": "Start",
"Common.Views.Plugins.textStop": "Stop",
+ "Common.Views.Plugins.textClosePanel": "Close plugin",
"Common.Views.Protection.hintAddPwd": "Encrypt with password",
"Common.Views.Protection.hintPwd": "Change or delete password",
"Common.Views.Protection.hintSignature": "Add digital signature or signature line",
diff --git a/apps/spreadsheeteditor/main/locale/en.json b/apps/spreadsheeteditor/main/locale/en.json
index 443082f74..6c93b5510 100644
--- a/apps/spreadsheeteditor/main/locale/en.json
+++ b/apps/spreadsheeteditor/main/locale/en.json
@@ -304,6 +304,7 @@
"Common.Views.Plugins.textLoading": "Loading",
"Common.Views.Plugins.textStart": "Start",
"Common.Views.Plugins.textStop": "Stop",
+ "Common.Views.Plugins.textClosePanel": "Close plugin",
"Common.Views.Protection.hintAddPwd": "Encrypt with password",
"Common.Views.Protection.hintPwd": "Change or delete password",
"Common.Views.Protection.hintSignature": "Add digital signature or signature line",