From 3b9f765c24a221eab92837b9e540bf7416187b47 Mon Sep 17 00:00:00 2001 From: Adorian Doran Date: Thu, 26 Feb 2026 19:52:20 +0200 Subject: [PATCH] style/tree items: display a fallback icon when the specified icon pack is missing --- apps/client/src/stylesheets/tree.css | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/apps/client/src/stylesheets/tree.css b/apps/client/src/stylesheets/tree.css index cb354d30df..a791f0578b 100644 --- a/apps/client/src/stylesheets/tree.css +++ b/apps/client/src/stylesheets/tree.css @@ -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)); }