From 45c2ac41d5958d407baa02d5abb71f6faf17c8a3 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Thu, 2 May 2024 08:32:54 +1000 Subject: [PATCH] feat(ui): processor layout/styling --- .../components/ControlAndIPAdapter/ControlAdapter.tsx | 4 ++-- .../ControlAdapterProcessorTypeSelect.tsx | 2 +- .../ControlAndIPAdapter/processors/CannyProcessor.tsx | 4 ++-- .../ControlAndIPAdapter/processors/ColorMapProcessor.tsx | 2 +- .../processors/ContentShuffleProcessor.tsx | 6 +++--- .../ControlAndIPAdapter/processors/DWOpenposeProcessor.tsx | 6 +++--- .../processors/DepthAnythingProcessor.tsx | 2 +- .../ControlAndIPAdapter/processors/HedProcessor.tsx | 2 +- .../ControlAndIPAdapter/processors/LineartProcessor.tsx | 2 +- .../processors/MediapipeFaceProcessor.tsx | 4 ++-- .../ControlAndIPAdapter/processors/MidasDepthProcessor.tsx | 4 ++-- .../ControlAndIPAdapter/processors/MlsdImageProcessor.tsx | 4 ++-- .../ControlAndIPAdapter/processors/PidiProcessor.tsx | 4 ++-- .../ControlAndIPAdapter/processors/ProcessorWrapper.tsx | 2 +- 14 files changed, 24 insertions(+), 24 deletions(-) diff --git a/invokeai/frontend/web/src/features/controlLayers/components/ControlAndIPAdapter/ControlAdapter.tsx b/invokeai/frontend/web/src/features/controlLayers/components/ControlAndIPAdapter/ControlAdapter.tsx index ecdfa46ef6..986e9a6373 100644 --- a/invokeai/frontend/web/src/features/controlLayers/components/ControlAndIPAdapter/ControlAdapter.tsx +++ b/invokeai/frontend/web/src/features/controlLayers/components/ControlAndIPAdapter/ControlAdapter.tsx @@ -95,13 +95,13 @@ export const ControlAdapter = memo( {isExpanded && ( - <> + - + )} ); diff --git a/invokeai/frontend/web/src/features/controlLayers/components/ControlAndIPAdapter/ControlAdapterProcessorTypeSelect.tsx b/invokeai/frontend/web/src/features/controlLayers/components/ControlAndIPAdapter/ControlAdapterProcessorTypeSelect.tsx index b6bba6301f..8041f7f6ba 100644 --- a/invokeai/frontend/web/src/features/controlLayers/components/ControlAndIPAdapter/ControlAdapterProcessorTypeSelect.tsx +++ b/invokeai/frontend/web/src/features/controlLayers/components/ControlAndIPAdapter/ControlAdapterProcessorTypeSelect.tsx @@ -51,7 +51,7 @@ export const ControlAdapterProcessorTypeSelect = memo(({ config, onChange }: Pro - {t('controlnet.processor')} + {t('controlnet.processor')} diff --git a/invokeai/frontend/web/src/features/controlLayers/components/ControlAndIPAdapter/processors/CannyProcessor.tsx b/invokeai/frontend/web/src/features/controlLayers/components/ControlAndIPAdapter/processors/CannyProcessor.tsx index c4d6031912..999c8c7764 100644 --- a/invokeai/frontend/web/src/features/controlLayers/components/ControlAndIPAdapter/processors/CannyProcessor.tsx +++ b/invokeai/frontend/web/src/features/controlLayers/components/ControlAndIPAdapter/processors/CannyProcessor.tsx @@ -27,7 +27,7 @@ export const CannyProcessor = ({ onChange, config }: Props) => { return ( - {t('controlnet.lowThreshold')} + {t('controlnet.lowThreshold')} { /> - {t('controlnet.highThreshold')} + {t('controlnet.highThreshold')} { return ( - {t('controlnet.colorMapTileSize')} + {t('controlnet.colorMapTileSize')} { return ( - {t('controlnet.w')} + {t('controlnet.w')} { - {t('controlnet.h')} + {t('controlnet.h')} { - {t('controlnet.f')} + {t('controlnet.f')} { - {t('controlnet.body')} + {t('controlnet.body')} - {t('controlnet.face')} + {t('controlnet.face')} - {t('controlnet.hands')} + {t('controlnet.hands')} { return ( - {t('controlnet.modelSize')} + {t('controlnet.modelSize')} { return ( - {t('controlnet.scribble')} + {t('controlnet.scribble')} diff --git a/invokeai/frontend/web/src/features/controlLayers/components/ControlAndIPAdapter/processors/LineartProcessor.tsx b/invokeai/frontend/web/src/features/controlLayers/components/ControlAndIPAdapter/processors/LineartProcessor.tsx index d882543af4..aeb4121a36 100644 --- a/invokeai/frontend/web/src/features/controlLayers/components/ControlAndIPAdapter/processors/LineartProcessor.tsx +++ b/invokeai/frontend/web/src/features/controlLayers/components/ControlAndIPAdapter/processors/LineartProcessor.tsx @@ -22,7 +22,7 @@ export const LineartProcessor = memo(({ onChange, config }: Props) => { return ( - {t('controlnet.coarse')} + {t('controlnet.coarse')} diff --git a/invokeai/frontend/web/src/features/controlLayers/components/ControlAndIPAdapter/processors/MediapipeFaceProcessor.tsx b/invokeai/frontend/web/src/features/controlLayers/components/ControlAndIPAdapter/processors/MediapipeFaceProcessor.tsx index a3c2936916..72f0d52dc5 100644 --- a/invokeai/frontend/web/src/features/controlLayers/components/ControlAndIPAdapter/processors/MediapipeFaceProcessor.tsx +++ b/invokeai/frontend/web/src/features/controlLayers/components/ControlAndIPAdapter/processors/MediapipeFaceProcessor.tsx @@ -29,7 +29,7 @@ export const MediapipeFaceProcessor = memo(({ onChange, config }: Props) => { return ( - {t('controlnet.maxFaces')} + {t('controlnet.maxFaces')} { /> - {t('controlnet.minConfidence')} + {t('controlnet.minConfidence')} { return ( - {t('controlnet.amult')} + {t('controlnet.amult')} { /> - {t('controlnet.bgth')} + {t('controlnet.bgth')} { return ( - {t('controlnet.w')} + {t('controlnet.w')} { /> - {t('controlnet.h')} + {t('controlnet.h')} { return ( - {t('controlnet.scribble')} + {t('controlnet.scribble')} - {t('controlnet.safe')} + {t('controlnet.safe')} diff --git a/invokeai/frontend/web/src/features/controlLayers/components/ControlAndIPAdapter/processors/ProcessorWrapper.tsx b/invokeai/frontend/web/src/features/controlLayers/components/ControlAndIPAdapter/processors/ProcessorWrapper.tsx index 0b99887b53..2b2468703b 100644 --- a/invokeai/frontend/web/src/features/controlLayers/components/ControlAndIPAdapter/processors/ProcessorWrapper.tsx +++ b/invokeai/frontend/web/src/features/controlLayers/components/ControlAndIPAdapter/processors/ProcessorWrapper.tsx @@ -6,7 +6,7 @@ type Props = PropsWithChildren; const ProcessorWrapper = (props: Props) => { return ( - + {props.children} );