Skip to content

Build your personal knowledge base with Trilium Notes

fix(client): note icon picker hidden behind the quick edit popup

Elian Doranfad194559b59
diff --git a/apps/client/src/widgets/note_icon.css b/apps/client/src/widgets/note_icon.css
index cea05cdcd9..47babf8457 100644
--- a/apps/client/src/widgets/note_icon.css
+++ b/apps/client/src/widgets/note_icon.css
@@ -6,6 +6,14 @@ div.note-icon-widget {
contain: unset;
}
+/* The menu is portaled to `document.body` (see the Dropdown's `portalToBody`), so it competes with
+ modals in the root stacking context instead of painting inside them. The global dropdown z-index
+ (999) ties with the quick-edit dialog (999, or 1100 when stacked) and loses, hiding the picker.
+ Raise it above any modal it can be opened from. */
+body > div.note-icon-widget > .dropdown-menu {
+ --bs-dropdown-zindex: 1200;
+}
+
.note-icon-widget button.note-icon {
--size: calc(var(--note-icon-size) + var(--note-icon-container-padding-size) * 2);