[PE] Fix rendering themes

This commit is contained in:
Julia Radzhabova 2019-07-23 10:21:00 +03:00
parent 469893845f
commit d4cc5df5bc
2 changed files with 1 additions and 9 deletions

View file

@ -2032,7 +2032,7 @@ define([
store : PE.getCollection('SlideThemes'),
itemTemplate: _.template([
'<div class="style" id="<%= id %>" style="width: <%= itemWidth %>px;">',
'<div style="background-image: url(<%= imageUrl %>); width: <%= itemWidth %>px; height: <%= itemHeight %>px;background-position: 0 -<%= offsety %>px;"/>',
'<div style="background-image: url(<%= imageUrl %>); width: <%= itemWidth %>px; height: <%= itemHeight %>px;background-position: 0 -<%= offsety %>px;background-size: cover;"/>',
'</div>'
].join(''))
}).on('item:click', function(picker, item, record, e) {

View file

@ -332,12 +332,4 @@
z-index: @zindex-dropdown - 20;
background-color: @gray-light;
border: 1px solid @gray;
}
.combo-styles {
.style {
> div {
background-size: auto;
}
}
}