From 88b32e8302fdbf4e37d3352cd0a3c1c5253ad46d Mon Sep 17 00:00:00 2001 From: Josh Corbett Date: Sun, 25 Aug 2024 02:59:24 -0600 Subject: [PATCH] feat(model manager): :lipstick: remove excessive visual layering --- .../modelManagerV2/subpanels/InstallModels.tsx | 14 +++++++------- .../modelManagerV2/subpanels/ModelManager.tsx | 4 ++-- .../subpanels/ModelManagerPanel/ModelImage.tsx | 3 ++- .../subpanels/ModelManagerPanel/ModelListItem.tsx | 3 +-- .../ModelManagerPanel/ModelListWrapper.tsx | 2 +- .../modelManagerV2/subpanels/ModelPane.tsx | 2 +- .../subpanels/ModelPanel/ModelView.tsx | 2 +- .../ui/components/tabs/ModelManagerTab.tsx | 2 +- 8 files changed, 16 insertions(+), 16 deletions(-) diff --git a/invokeai/frontend/web/src/features/modelManagerV2/subpanels/InstallModels.tsx b/invokeai/frontend/web/src/features/modelManagerV2/subpanels/InstallModels.tsx index 90f3a578da7..36c69134287 100644 --- a/invokeai/frontend/web/src/features/modelManagerV2/subpanels/InstallModels.tsx +++ b/invokeai/frontend/web/src/features/modelManagerV2/subpanels/InstallModels.tsx @@ -20,14 +20,14 @@ export const InstallModels = memo(() => { }, []); return ( - + {t('modelManager.addModel')} - + - {t('modelManager.urlOrLocalPath')} - {t('modelManager.huggingFace')} - {t('modelManager.scanFolder')} - {t('modelManager.starterModels')} + {t('modelManager.urlOrLocalPath')} + {t('modelManager.huggingFace')} + {t('modelManager.scanFolder')} + {t('modelManager.starterModels')} @@ -44,7 +44,7 @@ export const InstallModels = memo(() => { - + diff --git a/invokeai/frontend/web/src/features/modelManagerV2/subpanels/ModelManager.tsx b/invokeai/frontend/web/src/features/modelManagerV2/subpanels/ModelManager.tsx index a07cb8c10b1..33b89d28f83 100644 --- a/invokeai/frontend/web/src/features/modelManagerV2/subpanels/ModelManager.tsx +++ b/invokeai/frontend/web/src/features/modelManagerV2/subpanels/ModelManager.tsx @@ -16,14 +16,14 @@ export const ModelManager = memo(() => { }, [dispatch]); return ( - + {t('common.modelManager')} - + diff --git a/invokeai/frontend/web/src/features/modelManagerV2/subpanels/ModelManagerPanel/ModelImage.tsx b/invokeai/frontend/web/src/features/modelManagerV2/subpanels/ModelManagerPanel/ModelImage.tsx index d273d92bdb5..38ea5c56937 100644 --- a/invokeai/frontend/web/src/features/modelManagerV2/subpanels/ModelManagerPanel/ModelImage.tsx +++ b/invokeai/frontend/web/src/features/modelManagerV2/subpanels/ModelManagerPanel/ModelImage.tsx @@ -15,7 +15,8 @@ const ModelImage = ({ image_url }: Props) => { { aria-selected={isSelected} justifyContent="flex-start" p={2} - borderRadius="base" w="full" alignItems="center" gap={2} diff --git a/invokeai/frontend/web/src/features/modelManagerV2/subpanels/ModelManagerPanel/ModelListWrapper.tsx b/invokeai/frontend/web/src/features/modelManagerV2/subpanels/ModelManagerPanel/ModelListWrapper.tsx index bde79e45540..7807e3234c0 100644 --- a/invokeai/frontend/web/src/features/modelManagerV2/subpanels/ModelManagerPanel/ModelListWrapper.tsx +++ b/invokeai/frontend/web/src/features/modelManagerV2/subpanels/ModelManagerPanel/ModelListWrapper.tsx @@ -12,7 +12,7 @@ type ModelListWrapperProps = { export const ModelListWrapper = memo((props: ModelListWrapperProps) => { const { title, modelList } = props; return ( - + {modelList.map((model) => ( ))} diff --git a/invokeai/frontend/web/src/features/modelManagerV2/subpanels/ModelPane.tsx b/invokeai/frontend/web/src/features/modelManagerV2/subpanels/ModelPane.tsx index eb85434d363..260a4d10043 100644 --- a/invokeai/frontend/web/src/features/modelManagerV2/subpanels/ModelPane.tsx +++ b/invokeai/frontend/web/src/features/modelManagerV2/subpanels/ModelPane.tsx @@ -8,7 +8,7 @@ import { Model } from './ModelPanel/Model'; export const ModelPane = memo(() => { const selectedModelKey = useAppSelector((s) => s.modelmanagerV2.selectedModelKey); return ( - + {selectedModelKey ? : } ); diff --git a/invokeai/frontend/web/src/features/modelManagerV2/subpanels/ModelPanel/ModelView.tsx b/invokeai/frontend/web/src/features/modelManagerV2/subpanels/ModelPanel/ModelView.tsx index f02a84efb36..38790e85ae4 100644 --- a/invokeai/frontend/web/src/features/modelManagerV2/subpanels/ModelPanel/ModelView.tsx +++ b/invokeai/frontend/web/src/features/modelManagerV2/subpanels/ModelPanel/ModelView.tsx @@ -18,7 +18,7 @@ type Props = { export const ModelView = memo(({ modelConfig }: Props) => { const { t } = useTranslation(); return ( - + {modelConfig.format === 'checkpoint' && modelConfig.type === 'main' && ( diff --git a/invokeai/frontend/web/src/features/ui/components/tabs/ModelManagerTab.tsx b/invokeai/frontend/web/src/features/ui/components/tabs/ModelManagerTab.tsx index d80f36bd91e..ada425b7aed 100644 --- a/invokeai/frontend/web/src/features/ui/components/tabs/ModelManagerTab.tsx +++ b/invokeai/frontend/web/src/features/ui/components/tabs/ModelManagerTab.tsx @@ -5,7 +5,7 @@ import { memo } from 'react'; const ModelManagerTab = () => { return ( - +