Render canvas image nodes with object-contain

Show the full picture inside image resource nodes instead of cropping
with object-cover; matches the reference product where node frames
adapt to the image and no content is clipped, and fixes existing
nodes created before aspect fitting was added.
This commit is contained in:
134 2026-09-18 18:45:39 +08:00
parent b4b6e1a738
commit 8a1876e016

View File

@ -19512,7 +19512,7 @@ function PresetMediaCanvasNode({
) : mediaUrl ? (
<img
alt={node.title}
className={cn("pointer-events-none h-full w-full", localEditMode || isCharacterThreeViewNode(node) ? "object-contain" : "object-cover")}
className="pointer-events-none h-full w-full object-contain"
draggable={false}
onDragStart={preventNativeImageDrag}
src={mediaUrl}