fix(fm): prevent dragging detail thumbnails and avatars into upload zones (#3176)

Native img drags from the file-detail sidebar and user avatars were
treated as file drops by the upload zone. Explorer thumbnails already
suppress native dragging; apply the same to both.
pull/3582/head
Tomas Dvorak 2 weeks ago
parent 6665cfc452
commit d260c3f92d

@ -119,6 +119,7 @@ const UserAvatar = memo(
img: { img: {
loading: "lazy", loading: "lazy",
alt: "", alt: "",
draggable: false,
}, },
}} }}
{...rest} {...rest}

@ -50,6 +50,7 @@ const Details = ({ target, inPhotoViewer, setTarget, targetDisplayOptions }: Det
setThumbSrc(null); setThumbSrc(null);
}} }}
src={thumbSrc} src={thumbSrc}
draggable={false}
sx={{ sx={{
borderRadius: "8px", borderRadius: "8px",
}} }}

Loading…
Cancel
Save