Skip to content

Commit

Permalink
Move "nodrag" on LargeImageOutput to just handle (#2214)
Browse files Browse the repository at this point in the history
* Move "nodrag" on LargeImageOutput to just handle

* No resize on bottom/right
  • Loading branch information
joeyballentine committed Sep 15, 2023
1 parent 34e3eff commit c878a9b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/renderer/components/outputs/LargeImageOutput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,14 @@ export const LargeImageOutput = memo(
w="full"
>
<Resizable
className="nodrag"
defaultSize={{
width: size?.width ?? IMAGE_PREVIEW_SIZE,
height: size?.height ?? IMAGE_PREVIEW_SIZE,
}}
enable={{
top: false,
right: true,
bottom: true,
right: false,
bottom: false,
left: false,
topRight: false,
bottomRight: true,
Expand All @@ -116,6 +115,7 @@ export const LargeImageOutput = memo(
handleComponent={{
bottomRight: (
<Center
className="nodrag"
cursor="nwse-resize"
h="full"
ml={-1}
Expand Down Expand Up @@ -211,7 +211,6 @@ export const LargeImageOutput = memo(
h="full"
maxH="full"
maxW="full"
// objectFit="contain"
w="full"
>
<Image
Expand Down

0 comments on commit c878a9b

Please sign in to comment.