Fix icons for new document templates

This commit is contained in:
Julia Radzhabova 2020-04-30 17:34:04 +03:00
parent cf37f3390d
commit b79d2891ff
6 changed files with 12 additions and 9 deletions

View file

@ -655,9 +655,9 @@ define([
'<% _.each(docs, function(item) { %>', '<% _.each(docs, function(item) { %>',
'<div class="thumb-wrap" template="<%= item.url %>">', '<div class="thumb-wrap" template="<%= item.url %>">',
'<div class="thumb"', '<div class="thumb"',
'<% if (!_.isEmpty(item.icon)) { ' + '<% if (!_.isEmpty(item.icon)) { %> ',
'print(\" style=\'background-image: url(item.icon);\'>\")' + ' style="background-image: url(<%= item.icon %>);">',
' } else { ' + '<% } else { ' +
'print(\"><svg class=\'btn-doc-format\'><use xlink:href=\'#svg-format-blank\'></use></svg>\")' + 'print(\"><svg class=\'btn-doc-format\'><use xlink:href=\'#svg-format-blank\'></use></svg>\")' +
' } %>', ' } %>',
'</div>', '</div>',

View file

@ -196,6 +196,7 @@
.thumb { .thumb {
width: 102px; width: 102px;
height: 128px; height: 128px;
background-repeat: no-repeat;
} }
.title { .title {

View file

@ -564,9 +564,9 @@ define([
'<% _.each(docs, function(item) { %>', '<% _.each(docs, function(item) { %>',
'<div class="thumb-wrap" template="<%= item.url %>">', '<div class="thumb-wrap" template="<%= item.url %>">',
'<div class="thumb"', '<div class="thumb"',
'<% if (!_.isEmpty(item.icon)) { ' + '<% if (!_.isEmpty(item.icon)) { %> ',
'print(\" style=\'background-image: url(item.icon);\'>\")' + ' style="background-image: url(<%= item.icon %>);">',
' } else { ' + '<% } else { ' +
'print(\"><svg class=\'btn-doc-format\'><use xlink:href=\'#svg-format-blank\'></use></svg>\")' + 'print(\"><svg class=\'btn-doc-format\'><use xlink:href=\'#svg-format-blank\'></use></svg>\")' +
' } %>', ' } %>',
'</div>', '</div>',

View file

@ -262,6 +262,7 @@
.thumb { .thumb {
width: 102px; width: 102px;
height: 128px; height: 128px;
background-repeat: no-repeat;
} }
.title { .title {

View file

@ -1378,9 +1378,9 @@ define([
'<% _.each(docs, function(item) { %>', '<% _.each(docs, function(item) { %>',
'<div class="thumb-wrap" template="<%= item.url %>">', '<div class="thumb-wrap" template="<%= item.url %>">',
'<div class="thumb"', '<div class="thumb"',
'<% if (!_.isEmpty(item.icon)) { ' + '<% if (!_.isEmpty(item.icon)) { %> ',
'print(\" style=\'background-image: url(item.icon);\'>\")' + ' style="background-image: url(<%= item.icon %>);">',
' } else { ' + '<% } else { ' +
'print(\"><svg class=\'btn-doc-format\'><use xlink:href=\'#svg-format-blank\'></use></svg>\")' + 'print(\"><svg class=\'btn-doc-format\'><use xlink:href=\'#svg-format-blank\'></use></svg>\")' +
' } %>', ' } %>',
'</div>', '</div>',

View file

@ -315,6 +315,7 @@
.thumb { .thumb {
width: 102px; width: 102px;
height: 128px; height: 128px;
background-repeat: no-repeat;
} }
.title { .title {