From fa80848dd57cdbe2a0bcda22edca627b9ff5468f Mon Sep 17 00:00:00 2001 From: Enrico Ros Date: Thu, 9 Jan 2025 22:48:40 -0800 Subject: [PATCH] Attachments: show caption in tooltip --- .../fragments-attachment-doc/DocAttachmentFragment.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/apps/chat/components/message/fragments-attachment-doc/DocAttachmentFragment.tsx b/src/apps/chat/components/message/fragments-attachment-doc/DocAttachmentFragment.tsx index 4d6503073..09b603fef 100644 --- a/src/apps/chat/components/message/fragments-attachment-doc/DocAttachmentFragment.tsx +++ b/src/apps/chat/components/message/fragments-attachment-doc/DocAttachmentFragment.tsx @@ -171,8 +171,10 @@ export function DocAttachmentFragment(props: {
{fragmentDocPart.vdt}
Text Buffer Id
{fragmentId}
+ {!!fragment.caption &&
Att. Caption
} + {!!fragment.caption &&
{fragment.caption}
} - ), [fragment.title, fragmentDocPart, fragmentId]); + ), [fragment.caption, fragment.title, fragmentDocPart, fragmentId]); const headerRow = React.useMemo(() => {