SSE] Change layout in ProtectRangesDlg

This commit is contained in:
Alexei Koshelev
2023-03-20 22:45:46 +03:00
parent 65f66f9563
commit 7f13daa111
3 changed files with 21 additions and 10 deletions

View File

@ -10,18 +10,18 @@
</td>
</tr>
<tr>
<td colspan=2 class="padding-small">
<div id="protect-ranges-list" class="range-tableview" style="width:100%; height: 164px;"></div>
</td>
</tr>
<tr>
<td class="padding-large">
<button type="button" class="btn btn-text-default" id="protect-ranges-btn-new" style="min-width: 100px;margin-right:5px;"><%= scope.textNew %></button>
<td class="padding-small">
<button type="button" class="btn btn-text-default" id="protect-ranges-btn-new" style="min-width: 100px;"><%= scope.textNew %></button>
<button type="button" class="btn btn-text-default" id="protect-ranges-btn-edit" style="min-width: 100px;"><%= scope.textEdit %></button>
</td>
<td class="padding-large" style="text-align: right;width:90px;">
<td class="padding-small" style="text-align: right;width:90px;">
<button type="button" class="btn btn-text-default" id="protect-ranges-btn-delete" style="min-width: 100px;"><%= scope.textDelete %></button>
</td>
</tr>
<tr>
<td colspan=2 class="padding-small">
<div id="protect-ranges-list" class="range-tableview" style="width:100%; height: 164px;"></div>
</td>
</tr>
</table>
</div>

View File

@ -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',
'<div class="box" style="height:' + (this.options.height-85) + 'px;">',
'<div class="content-panel" style="padding: 0;">' + _.template(contentTemplate)({scope: this}) + '</div>',
'</div>',
'<div class="separator horizontal"></div>'
].join(''),
buttons: [
// {

View File

@ -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;