diff --git a/invokeai/frontend/web/src/features/controlAdapters/components/ControlAdapterImagePreview.tsx b/invokeai/frontend/web/src/features/controlAdapters/components/ControlAdapterImagePreview.tsx index b585bd1d57..6caf46d0b4 100644 --- a/invokeai/frontend/web/src/features/controlAdapters/components/ControlAdapterImagePreview.tsx +++ b/invokeai/frontend/web/src/features/controlAdapters/components/ControlAdapterImagePreview.tsx @@ -184,23 +184,25 @@ const ControlAdapterImagePreview = ({ isSmall, id }: Props) => { /> - - : undefined} - tooltip={t('controlnet.resetControlImage')} - /> - : undefined} - tooltip={t('controlnet.saveControlImage')} - /> - : undefined} - tooltip={t('controlnet.setControlImageDimensions')} - /> - + {controlImage && ( + + } + tooltip={t('controlnet.resetControlImage')} + /> + } + tooltip={t('controlnet.saveControlImage')} + /> + } + tooltip={t('controlnet.setControlImageDimensions')} + /> + + )} {pendingControlImages.includes(id) && ( - <> - : undefined} - tooltip={t('controlnet.resetControlImage')} - /> - : undefined} - tooltip={t('controlnet.saveControlImage')} - mt={6} - /> - : undefined} - tooltip={shift ? t('controlnet.setControlImageDimensionsForce') : t('controlnet.setControlImageDimensions')} - mt={12} - /> - + {controlImage && ( + + } + tooltip={t('controlnet.resetControlImage')} + /> + } + tooltip={t('controlnet.saveControlImage')} + /> + } + tooltip={ + shift ? t('controlnet.setControlImageDimensionsForce') : t('controlnet.setControlImageDimensions') + } + /> + + )} {controlAdapter.processorPendingBatchId !== null && ( + - <> - : undefined} - tooltip={t('controlnet.resetControlImage')} - /> - : undefined} - tooltip={shift ? t('controlnet.setControlImageDimensionsForce') : t('controlnet.setControlImageDimensions')} - mt={6} - /> - + {controlImage && ( + + } + tooltip={t('controlnet.resetControlImage')} + /> + } + tooltip={ + shift ? t('controlnet.setControlImageDimensionsForce') : t('controlnet.setControlImageDimensions') + } + /> + + )} ); } diff --git a/invokeai/frontend/web/src/features/controlLayers/components/IILayer/InitialImagePreview.tsx b/invokeai/frontend/web/src/features/controlLayers/components/IILayer/InitialImagePreview.tsx index ee62dcbcdd..0a9157068d 100644 --- a/invokeai/frontend/web/src/features/controlLayers/components/IILayer/InitialImagePreview.tsx +++ b/invokeai/frontend/web/src/features/controlLayers/components/IILayer/InitialImagePreview.tsx @@ -78,27 +78,32 @@ export const InitialImagePreview = memo(({ image, onChangeImage, droppableData, }, [onReset, isConnected, isErrorControlImage]); return ( - - + + + - <> - : undefined} - tooltip={t('controlnet.resetControlImage')} - /> - : undefined} - tooltip={shift ? t('controlnet.setControlImageDimensionsForce') : t('controlnet.setControlImageDimensions')} - mt={6} - /> - + {imageDTO && ( + + } + tooltip={t('controlnet.resetControlImage')} + /> + } + tooltip={ + shift ? t('controlnet.setControlImageDimensionsForce') : t('controlnet.setControlImageDimensions') + } + /> + + )} + ); });