Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
client/AI chat: fix dropdown positioning in the sidebar mode, while peeking
Adorian Doran528c1bca96f1
diff --git a/apps/client/src/widgets/sidebar/SidebarChat.tsx b/apps/client/src/widgets/sidebar/SidebarChat.tsxindex 988a627777..c93a19715c 100644--- a/apps/client/src/widgets/sidebar/SidebarChat.tsx+++ b/apps/client/src/widgets/sidebar/SidebarChat.tsx@@ -313,6 +313,9 @@ export default function SidebarChat() {hideToggleArrowdropdownContainerClassName="tn-dropdown-menu-scrollable"dropdownOptions={{ popperConfig: { strategy: "fixed" } }}+ // In peek mode #right-pane has a backdrop-filter, which becomes the containing+ // block for the fixed-positioned menu and offsets it — portal to body to escape it.+ portalToBodydropdownRef={historyDropdownRef}onShown={loadRecentChats}>@@ -363,6 +366,9 @@ export default function SidebarChat() {iconActionhideToggleArrowdropdownOptions={{ popperConfig: { strategy: "fixed" } }}+ // See the history dropdown above: portal to body so peek mode's backdrop-filter+ // containing block doesn't offset the fixed menu.+ portalToBody><FormListItemicon="bx bx-save"