file-browser: custom icon for files

This commit is contained in:
jean-emmanuel 2019-04-02 09:35:10 +02:00
parent efb128147a
commit 248ddd9625
2 changed files with 10 additions and 8 deletions

View file

@ -283,7 +283,7 @@ module.exports = {
list.appendChild(html`
<div class="file">
<input type="radio" value="${file.name}" name="file" class="${file.folder ? 'folder' : 'file'}"/>
<div class="label"><span>${raw(module.exports.icon(file.folder ? 'folder' : 'file-alt'))} ${file.name}</span></div>
<div class="label"><span>${raw(module.exports.icon(file.folder ? 'folder' : 'osc'))} ${file.name}</span></div>
</div>
`)
}

View file

@ -9,7 +9,6 @@
@import 'sidepanel';
@import 'widgets';
input,
textarea,
{
@ -596,12 +595,13 @@ body {
color: #ff00ff;
}
@import 'themes/default';
.fa-osc:before {
content:"\f111";
color: transparent;
background-image: url(../assets/logo.png);
background-size: contain;
background-repeat: no-repeat;
}
.file-browser {
width: 540px;
@ -688,3 +688,5 @@ body {
}
}
}
@import 'themes/default';