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:
parent
b4b6e1a738
commit
8a1876e016
@ -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}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user