bug 51943

This commit is contained in:
OVSharova 2023-01-11 13:19:58 +03:00
parent 6e3f767882
commit 3f2f19fd06
2 changed files with 7 additions and 2 deletions

View file

@ -89,7 +89,7 @@ define([
'<% _.each(items, function(item) { %>', '<% _.each(items, function(item) { %>',
'<li id="<%= item.id %>" data-value="<%= item.value %>"><a tabindex="-1" type="menuitem">', '<li id="<%= item.id %>" data-value="<%= item.value %>"><a tabindex="-1" type="menuitem">',
'<span><%= item.displayValue %></span>', '<span><%= item.displayValue %></span>',
'<span style="float: right;">', '<span class="border-line">',
'<svg class="img-border-size" style="height: <%= Math.ceil(item.pxValue) %>px; margin-top: -<%= Math.ceil(item.pxValue)/2 %>px">', '<svg class="img-border-size" style="height: <%= Math.ceil(item.pxValue) %>px; margin-top: -<%= Math.ceil(item.pxValue)/2 %>px">',
'<use xlink:href="#<%= item.imgId %>"></use>', '<use xlink:href="#<%= item.imgId %>"></use>',
'</svg>', '</svg>',
@ -200,7 +200,7 @@ define([
'<li id="<%= item.id %>" data-value="<%= item.value %>"><a tabindex="-1" type="menuitem">', '<li id="<%= item.id %>" data-value="<%= item.value %>"><a tabindex="-1" type="menuitem">',
'<span><%= item.displayValue %>' + '</span>', '<span><%= item.displayValue %>' + '</span>',
'<% if (item.imgId!==undefined) { %>', '<% if (item.imgId!==undefined) { %>',
'<span style="float: right;">', '<span class="border-line">',
'<svg class="img-border-size" style="height: <%= Math.ceil(item.pxValue) %>px; margin-top: -<%= (Math.ceil(item.pxValue)/2) %>px">', '<svg class="img-border-size" style="height: <%= Math.ceil(item.pxValue) %>px; margin-top: -<%= (Math.ceil(item.pxValue)/2) %>px">',
'<use xlink:href="#<%= item.imgId %>"></use>', '<use xlink:href="#<%= item.imgId %>"></use>',
'</svg>', '</svg>',

View file

@ -37,6 +37,11 @@
display: block; display: block;
top:50%; top:50%;
} }
.border-line{
float: right;
}
.img-line { .img-line {
width: auto; width: auto;
height: 100%; height: 100%;