From 9fdfd4267cbc66526450648100c36d8780995fb5 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Wed, 3 Apr 2024 15:15:56 +1100 Subject: [PATCH] fix(ui): fix model name overflow Closes #3897 --- .../subpanels/ModelManagerPanel/ModelListItem.tsx | 8 +++++--- .../modelManagerV2/subpanels/ModelPanel/Model.tsx | 6 +++--- .../modelManagerV2/subpanels/ModelPanel/ModelAttrView.tsx | 4 +++- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/invokeai/frontend/web/src/features/modelManagerV2/subpanels/ModelManagerPanel/ModelListItem.tsx b/invokeai/frontend/web/src/features/modelManagerV2/subpanels/ModelManagerPanel/ModelListItem.tsx index 995a599048..c9d0c03ed8 100644 --- a/invokeai/frontend/web/src/features/modelManagerV2/subpanels/ModelManagerPanel/ModelListItem.tsx +++ b/invokeai/frontend/web/src/features/modelManagerV2/subpanels/ModelManagerPanel/ModelListItem.tsx @@ -90,11 +90,13 @@ const ModelListItem = (props: ModelListItemProps) => { cursor="pointer" onClick={handleSelectModel} > - + - + - {model.name} + + {model.name} + diff --git a/invokeai/frontend/web/src/features/modelManagerV2/subpanels/ModelPanel/Model.tsx b/invokeai/frontend/web/src/features/modelManagerV2/subpanels/ModelPanel/Model.tsx index 6c5583ade9..d95eed8d24 100644 --- a/invokeai/frontend/web/src/features/modelManagerV2/subpanels/ModelPanel/Model.tsx +++ b/invokeai/frontend/web/src/features/modelManagerV2/subpanels/ModelPanel/Model.tsx @@ -87,9 +87,9 @@ export const Model = () => { - + - + {data.name} @@ -114,7 +114,7 @@ export const Model = () => { )} {data.source && ( - + {t('modelManager.source')}: {data?.source} )} diff --git a/invokeai/frontend/web/src/features/modelManagerV2/subpanels/ModelPanel/ModelAttrView.tsx b/invokeai/frontend/web/src/features/modelManagerV2/subpanels/ModelPanel/ModelAttrView.tsx index f45bfca993..ebdedffebf 100644 --- a/invokeai/frontend/web/src/features/modelManagerV2/subpanels/ModelPanel/ModelAttrView.tsx +++ b/invokeai/frontend/web/src/features/modelManagerV2/subpanels/ModelPanel/ModelAttrView.tsx @@ -9,7 +9,9 @@ export const ModelAttrView = ({ label, value }: Props) => { return ( {label} - {value || '-'} + + {value || '-'} + ); };