Skip to content

Commit

Permalink
[SSE] Fix styles for protected ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
JuliaRadzhabova committed Feb 21, 2024
1 parent b660d90 commit 814e20a
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 20 deletions.
16 changes: 9 additions & 7 deletions apps/spreadsheeteditor/main/app/view/ProtectedRangesEditDlg.js
Original file line number Diff line number Diff line change
Expand Up @@ -461,16 +461,14 @@ define([
if (rec && !rec.get('isCurrent')) {
this.listUser.store.remove(rec);
}
var me = this;
setTimeout(function() {
me.listUser.focus();
}, 1);
},

onListUserClick: function(list, item, record, e) {
if (e) {
var btn = $(e.target);
if (btn && btn.hasClass('listitem-icon')) {
this.onDeleteUser(record);
return;
}
}

},

addControls: function(listView, itemView, item) {
Expand Down Expand Up @@ -527,6 +525,10 @@ define([

onHideMenu: function() {
this.listUser.enableKeyEvents = true;
var me = this;
setTimeout(function() {
me.listUser.focus();
}, 1);
},

txtProtect: 'Protect',
Expand Down
43 changes: 30 additions & 13 deletions apps/spreadsheeteditor/main/resources/less/advanced-settings.less
Original file line number Diff line number Diff line change
Expand Up @@ -528,18 +528,13 @@
position: absolute;
width: 20px;
height: 20px;
right: 12px;
right: 16px;
top: 4px;
.rtl & {
right: auto;
left: 12px;
left: 16px;
}
}
//&:hover {
// .listitem-icon {
// display: block;
// }
//}
.color {
display: inline-block;
width: 26px;
Expand All @@ -556,12 +551,34 @@
color: #ffffff;
font-weight: 700;
}
//&.selected {
// .listitem-icon {
// background-position-x: -20px;
// background-position-x: @button-small-active-icon-offset-x;
// }
//}
.listitem-icon .btn-toolbar {
background-color: transparent !important;
box-shadow: none;
}
&.selected {
.listitem-icon {
.btn-toolbar .icon{
background-position-x: -20px;
background-position-x: @button-small-active-icon-offset-x !important;
}
.caret {
border-color: @icon-normal-pressed-ie;
border-color: @icon-normal-pressed;
}
}
}
&:not(.selected) {
.listitem-icon {
.btn-toolbar .icon{
background-position-x: 0;
background-position-x: @button-small-normal-icon-offset-x !important;
}
.caret {
border-color: @icon-normal-ie;
border-color: @icon-normal;
}
}
}
}
}

Expand Down

0 comments on commit 814e20a

Please sign in to comment.