Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ const ControlNetImagePreview = (props: Props) => {
processorType !== 'none';

return (
<Box ref={containerRef} sx={{ position: 'relative', w: 'full', h: 'full' }}>
<Box
ref={containerRef}
sx={{ position: 'relative', w: 'full', h: 'full', aspectRatio: '1/1' }}
>
<IAIDndImage
image={controlImage}
onDrop={handleDrop}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ const CurrentImageDisplay = () => {
alignItems: 'center',
justifyContent: 'center',
gap: 4,
position: 'absolute',
}}
>
<CurrentImagePreview />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,10 @@ const InitialImagePreview = () => {
sx={{
width: 'full',
height: 'full',
position: 'relative',
position: 'absolute',
alignItems: 'center',
justifyContent: 'center',
p: 4,
}}
>
<IAIDndImage
Expand Down