mirror of
https://github.com/zadam/trilium.git
synced 2026-02-28 17:43:36 +01:00
style/tree items: display a fallback icon when the specified icon pack is missing
This commit is contained in:
parent
655b016efa
commit
3b9f765c24
@ -140,10 +140,22 @@ ul.fancytree-container {
|
||||
background-color: inherit;
|
||||
}
|
||||
|
||||
|
||||
.fancytree-custom-icon {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 1em;
|
||||
height: 1em;
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
/* Fallback icon */
|
||||
:where(.fancytree-custom-icon)::before {
|
||||
content: "?";
|
||||
}
|
||||
|
||||
/* Protected note icon badge */
|
||||
span.fancytree-node.protected > span.fancytree-custom-icon {
|
||||
filter: drop-shadow(2px 2px 2px var(--main-text-color));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user