fix: exclude embed thumbnails from image context menu actions
Add data-embed-thumbnail marker to VideoEmbed, GenericEmbed, and RichEmbed thumbnail containers. Update detection logic to skip these alongside avatars. Also remove redundant filename derivation in Save Image menu item.
This commit is contained in:
@@ -55,10 +55,7 @@ export function buildMessageMenuItems(params: MessageMenuParams): ContextMenuIte
|
||||
<path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z" />
|
||||
</svg>
|
||||
),
|
||||
onClick: () => {
|
||||
const filename = imageUrl.split('/').pop()?.split('?')[0] ?? 'image';
|
||||
saveImage(imageUrl, filename);
|
||||
},
|
||||
onClick: () => saveImage(imageUrl),
|
||||
});
|
||||
items.push({
|
||||
key: 'copy-image',
|
||||
|
||||
Reference in New Issue
Block a user