mirror of
https://github.com/zadam/trilium.git
synced 2025-02-24 15:05:31 +08:00
paperclip icon for attachment, closes #61
This commit is contained in:
parent
d5605aa64d
commit
89666eb078
3 changed files with 8 additions and 0 deletions
BIN
src/public/images/icons/paperclip.png
Normal file
BIN
src/public/images/icons/paperclip.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 358 B |
|
@ -155,6 +155,9 @@ const noteTree = (function() {
|
|||
if (note.type === 'code') {
|
||||
extraClasses.push("code");
|
||||
}
|
||||
else if (note.type === 'file') {
|
||||
extraClasses.push('attachment');
|
||||
}
|
||||
|
||||
return extraClasses.join(" ");
|
||||
}
|
||||
|
|
|
@ -72,6 +72,11 @@ span.fancytree-node.fancytree-folder.code > span.fancytree-icon {
|
|||
background-image: url("../images/icons/code-folder.png");
|
||||
}
|
||||
|
||||
span.fancytree-node.attachment > span.fancytree-icon {
|
||||
background-position: 0 0;
|
||||
background-image: url("../images/icons/paperclip.png");
|
||||
}
|
||||
|
||||
span.fancytree-node.protected > span.fancytree-icon {
|
||||
filter: drop-shadow(2px 2px 2px black);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue