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:
Jannis Braun
2026-03-25 03:23:23 +01:00
parent 4ea319646a
commit aeb4ea6e1d
5 changed files with 6 additions and 8 deletions
@@ -41,7 +41,7 @@ export function GenericEmbed({ embed }: GenericEmbedProps) {
)}
</div>
{embed.image && (
<div className="w-[80px] h-[80px] m-3 flex-shrink-0">
<div data-embed-thumbnail className="w-[80px] h-[80px] m-3 flex-shrink-0">
<img
src={embed.image}
alt=""