From 7f13daa111a4265be5644952db474495fcfeeed1 Mon Sep 17 00:00:00 2001 From: Alexei Koshelev Date: Mon, 20 Mar 2023 22:45:46 +0300 Subject: [PATCH] SSE] Change layout in ProtectRangesDlg --- .../main/app/template/ProtectRangesDlg.template | 16 ++++++++-------- .../main/app/view/ProtectRangesDlg.js | 4 ++-- .../main/resources/less/advanced-settings.less | 11 +++++++++++ 3 files changed, 21 insertions(+), 10 deletions(-) diff --git a/apps/spreadsheeteditor/main/app/template/ProtectRangesDlg.template b/apps/spreadsheeteditor/main/app/template/ProtectRangesDlg.template index f7abb351d4..e28a912719 100644 --- a/apps/spreadsheeteditor/main/app/template/ProtectRangesDlg.template +++ b/apps/spreadsheeteditor/main/app/template/ProtectRangesDlg.template @@ -10,18 +10,18 @@ - -
- - - - - + + - + + + + +
+ diff --git a/apps/spreadsheeteditor/main/app/view/ProtectRangesDlg.js b/apps/spreadsheeteditor/main/app/view/ProtectRangesDlg.js index 4af50fc7a3..4d94304438 100644 --- a/apps/spreadsheeteditor/main/app/view/ProtectRangesDlg.js +++ b/apps/spreadsheeteditor/main/app/view/ProtectRangesDlg.js @@ -50,7 +50,8 @@ define([ 'text!spreadsheeteditor/main/app/template/ProtectRangesDlg.template', options: { alias: 'ProtectRangesDlg', contentWidth: 480, - height: 353 + height: 333, + id: 'window-protect-ranges' }, initialize: function (options) { @@ -61,7 +62,6 @@ define([ 'text!spreadsheeteditor/main/app/template/ProtectRangesDlg.template', '
', '
' + _.template(contentTemplate)({scope: this}) + '
', '
', - '
' ].join(''), buttons: [ // { diff --git a/apps/spreadsheeteditor/main/resources/less/advanced-settings.less b/apps/spreadsheeteditor/main/resources/less/advanced-settings.less index 8010db95ed..98256acc41 100644 --- a/apps/spreadsheeteditor/main/resources/less/advanced-settings.less +++ b/apps/spreadsheeteditor/main/resources/less/advanced-settings.less @@ -625,6 +625,17 @@ } } +#window-protect-ranges { + #protect-ranges-btn-new { + margin-right:5px; + + .rtl & { + margin-right: 0px; + margin-left: 5px; + } + } +} + #printadv-dlg-pages { margin-top: 16px;