Skip to content

Build your personal knowledge base with Trilium Notes

client/content manager: fix an issue

Adorian Doran956b2b53eaca
diff --git a/apps/client/src/widgets/type_widgets/options/content_manager.css b/apps/client/src/widgets/type_widgets/options/content_manager.css
index c06815a374..85cf4646e6 100644
--- a/apps/client/src/widgets/type_widgets/options/content_manager.css
+++ b/apps/client/src/widgets/type_widgets/options/content_manager.css
@@ -48,6 +48,13 @@
white-space: nowrap;
}
+/* The item menu is portaled to <body> (so an open menu isn't counted as hovering its row), which
+ drops it below Bootstrap's modal when the page is opened in the settings dialog. Raised the same
+ way as the body-appended tooltips in style.css. */
+.content-manager-item-menu .dropdown-menu {
+ z-index: 32767;
+}
+
.content-manager-loading {
opacity: 0.7;
}
diff --git a/apps/client/src/widgets/type_widgets/options/content_manager.tsx b/apps/client/src/widgets/type_widgets/options/content_manager.tsx
index 0ca38b20a2..ca2ae154c0 100644
--- a/apps/client/src/widgets/type_widgets/options/content_manager.tsx
+++ b/apps/client/src/widgets/type_widgets/options/content_manager.tsx
@@ -45,6 +45,7 @@ const FILTER_DEBOUNCE_MS = 300;
function ContentItemMenu({ note }: { note: FNote }) {
return (
<Dropdown
+ className="content-manager-item-menu"
buttonClassName="note-book-item-menu bx bx-dots-vertical-rounded"
hideToggleArrow noSelectButtonStyle noDropdownListStyle iconAction
// Out of the row and into the body: nested, the open menu would still count as hovering