diff --git a/common/loginpage/src/css/styles.less b/common/loginpage/src/css/styles.less index 8c0ca9b71..95d082ef4 100644 --- a/common/loginpage/src/css/styles.less +++ b/common/loginpage/src/css/styles.less @@ -478,6 +478,15 @@ li.menu-item { } } + .icon.shield, i.icon.img-el.shield { + position: absolute; + width: 16px; + height: 16px; + top: 26px; + left: 29px; + background-position: -60px -76px; + } + .name { white-space: nowrap; overflow: hidden; diff --git a/common/loginpage/src/panelrecent.js b/common/loginpage/src/panelrecent.js index 41ed12712..da3002013 100644 --- a/common/loginpage/src/panelrecent.js +++ b/common/loginpage/src/panelrecent.js @@ -146,10 +146,11 @@ - ${info.crypted ? ` + ${info.crypted ? ` ` : ''} - ${!isSvgIcons ? `` :''} + ${!isSvgIcons ? `` : ''} + ${info.crypted && !isSvgIcons ? `` : ''}

${info.name}

${info.ext} @@ -206,8 +207,8 @@ let icoName = svgElem.attr('data-iconname'); iconContainer.append(``); - if (elm.hasClass('crypted-svg')) { - iconContainer.append(``); + if (iconContainer.find('.icon.shield').length) { + iconContainer.append(``); } }); @@ -233,8 +234,8 @@ iconContainer.append(``); - if (elm.hasClass('crypted-svg')) { - iconContainer.append(``); + if (iconContainer.find('.icon.shield').length) { + iconContainer.append(``); } });