mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix: ControlNet DnD icons repeated twice
This commit is contained in:
parent
33cb6cb4d8
commit
64723f0628
@ -166,27 +166,7 @@ const ControlNetImagePreview = ({ isSmall, controlNet }: Props) => {
|
|||||||
imageDTO={controlImage}
|
imageDTO={controlImage}
|
||||||
isDropDisabled={shouldShowProcessedImage || !isEnabled}
|
isDropDisabled={shouldShowProcessedImage || !isEnabled}
|
||||||
postUploadAction={postUploadAction}
|
postUploadAction={postUploadAction}
|
||||||
>
|
/>
|
||||||
<>
|
|
||||||
<IAIDndImageIcon
|
|
||||||
onClick={handleResetControlImage}
|
|
||||||
icon={controlImage ? <FaUndo /> : undefined}
|
|
||||||
tooltip="Reset Control Image"
|
|
||||||
/>
|
|
||||||
<IAIDndImageIcon
|
|
||||||
onClick={handleSaveControlImage}
|
|
||||||
icon={controlImage ? <FaSave size={16} /> : undefined}
|
|
||||||
tooltip="Save Control Image"
|
|
||||||
styleOverrides={{ marginTop: 6 }}
|
|
||||||
/>
|
|
||||||
<IAIDndImageIcon
|
|
||||||
onClick={handleSetControlImageToDimensions}
|
|
||||||
icon={controlImage ? <FaRulerVertical size={16} /> : undefined}
|
|
||||||
tooltip="Set Control Image Dimensions To W/H"
|
|
||||||
styleOverrides={{ marginTop: 12 }}
|
|
||||||
/>
|
|
||||||
</>
|
|
||||||
</IAIDndImage>
|
|
||||||
|
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
@ -207,28 +187,29 @@ const ControlNetImagePreview = ({ isSmall, controlNet }: Props) => {
|
|||||||
imageDTO={processedControlImage}
|
imageDTO={processedControlImage}
|
||||||
isUploadDisabled={true}
|
isUploadDisabled={true}
|
||||||
isDropDisabled={!isEnabled}
|
isDropDisabled={!isEnabled}
|
||||||
>
|
/>
|
||||||
<>
|
|
||||||
<IAIDndImageIcon
|
|
||||||
onClick={handleResetControlImage}
|
|
||||||
icon={controlImage ? <FaUndo /> : undefined}
|
|
||||||
tooltip="Reset Control Image"
|
|
||||||
/>
|
|
||||||
<IAIDndImageIcon
|
|
||||||
onClick={handleSaveControlImage}
|
|
||||||
icon={controlImage ? <FaSave size={16} /> : undefined}
|
|
||||||
tooltip="Save Control Image"
|
|
||||||
styleOverrides={{ marginTop: 6 }}
|
|
||||||
/>
|
|
||||||
<IAIDndImageIcon
|
|
||||||
onClick={handleSetControlImageToDimensions}
|
|
||||||
icon={controlImage ? <FaRulerVertical size={16} /> : undefined}
|
|
||||||
tooltip="Set Control Image Dimensions To W/H"
|
|
||||||
styleOverrides={{ marginTop: 12 }}
|
|
||||||
/>
|
|
||||||
</>
|
|
||||||
</IAIDndImage>
|
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
|
<>
|
||||||
|
<IAIDndImageIcon
|
||||||
|
onClick={handleResetControlImage}
|
||||||
|
icon={controlImage ? <FaUndo /> : undefined}
|
||||||
|
tooltip="Reset Control Image"
|
||||||
|
/>
|
||||||
|
<IAIDndImageIcon
|
||||||
|
onClick={handleSaveControlImage}
|
||||||
|
icon={controlImage ? <FaSave size={16} /> : undefined}
|
||||||
|
tooltip="Save Control Image"
|
||||||
|
styleOverrides={{ marginTop: 6 }}
|
||||||
|
/>
|
||||||
|
<IAIDndImageIcon
|
||||||
|
onClick={handleSetControlImageToDimensions}
|
||||||
|
icon={controlImage ? <FaRulerVertical size={16} /> : undefined}
|
||||||
|
tooltip="Set Control Image Dimensions To W/H"
|
||||||
|
styleOverrides={{ marginTop: 12 }}
|
||||||
|
/>
|
||||||
|
</>
|
||||||
|
|
||||||
{pendingControlImages.includes(controlNetId) && (
|
{pendingControlImages.includes(controlNetId) && (
|
||||||
<Flex
|
<Flex
|
||||||
sx={{
|
sx={{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user