[home] added default icon for items in the templates list

This commit is contained in:
maxkadushkin
2024-10-02 14:12:18 +03:00
parent 88e683c07d
commit caee86d316
3 changed files with 11 additions and 1 deletions

View File

@ -0,0 +1,3 @@
<svg width="256" height="256" xmlns="http://www.w3.org/2000/svg">
<path d="M10,81.5h233.9l-15.6,15.6V20l15.6,15.6H10L25.6,20v77.1L10,81.5L10,81.5z M10,97.2V20h233.9v77.1H10 L10,97.2z M238.2,130.1h7.8v-15.6H105.4v15.6h7.8H238.2z M238.2,164.2h7.8v-15.6H105.4v15.6h7.8H238.2z M238.2,198.3h7.8v-15.6 H105.4v15.6h7.8H238.2z M238.2,232.4h7.8v-15.6H105.4v15.6h7.8H238.2z M10,220.3h78L72.4,236V112.6L88,128.2H10l15.6-15.6V236 L10,220.3z M10,236V112.6h78V236H10L10,236z"/>
</svg>

After

Width:  |  Height:  |  Size: 472 B

View File

@ -110,9 +110,11 @@
utils.fn.extend(ViewTemplates.prototype, {
listitemtemplate: function(info) {
const icon_el = !info.icon ? `<svg class='icon'><use xlink:href='#template-item'></use></svg>`:
`<img src="${info.icon}"></img>`
return `<div id="${info.uid}" class='item'>
<div class='icon'>
<img src="${info.icon}"></img>
${icon_el}
</div>
<span class='title'>${info.name}</span>
</div>`;

View File

@ -1350,6 +1350,11 @@ li.menu-item {
img {
width: 140px;
}
svg {
width: 140px;
height: 120px;
fill: @highlight-button-pressed;
}
}
&:hover {