mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): fix drag preview image dimensions
This commit is contained in:
parent
173d3e6918
commit
07ce53678b
@ -55,6 +55,7 @@ const DragPreview = (props: OverlayDragImageProps) => {
|
||||
}
|
||||
|
||||
if (props.dragData.payloadType === 'IMAGE_DTO') {
|
||||
const { thumbnail_url, width, height } = props.dragData.payload.imageDTO;
|
||||
return (
|
||||
<Box
|
||||
sx={{
|
||||
@ -72,7 +73,10 @@ const DragPreview = (props: OverlayDragImageProps) => {
|
||||
sx={{
|
||||
...STYLES,
|
||||
}}
|
||||
src={props.dragData.payload.imageDTO.thumbnail_url}
|
||||
objectFit="contain"
|
||||
src={thumbnail_url}
|
||||
width={width}
|
||||
height={height}
|
||||
/>
|
||||
</Box>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user