Skip to content

Build your personal knowledge base with Trilium Notes

fix(attachments): let a card's menu open past the card

Elian Doran30f0c8d1abcb
diff --git a/apps/client/src/widgets/type_widgets/Attachment.tsx b/apps/client/src/widgets/type_widgets/Attachment.tsx
index 406687294e..eab0f6efb0 100644
--- a/apps/client/src/widgets/type_widgets/Attachment.tsx
+++ b/apps/client/src/widgets/type_widgets/Attachment.tsx
@@ -422,6 +422,10 @@ function AttachmentActions({ attachment, copyAttachmentReferenceToClipboard, onS
mobileBackdrop
// Doesn't scroll, so it keeps the working backdrop blur — see the prop's own docs.
noDropdownListStyle
+ // The card clips its overflow, to keep a picture inside its rounded corners, and a menu
+ // opening from the header is taller than the header has room for — so it is rendered
+ // into the body to stand clear of the card, as the highlights card's menu is.
+ portalToBody
>
<FormListItem
icon="bx bx-file-find"