diff --git a/src/renderer/src/pages/settings/ProviderSettings/ModelList.tsx b/src/renderer/src/pages/settings/ProviderSettings/ModelList.tsx index cd5d6f5e..30076786 100644 --- a/src/renderer/src/pages/settings/ProviderSettings/ModelList.tsx +++ b/src/renderer/src/pages/settings/ProviderSettings/ModelList.tsx @@ -289,9 +289,9 @@ const ModelList: React.FC = ({ providerId, modelStatuses = [], s } placement="top"> - {model.name} + {model.name} - + @@ -371,15 +371,20 @@ const ListItemName = styled.div` font-size: 14px; line-height: 1; font-weight: 600; - span { - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - cursor: help; - font-family: 'Ubuntu'; - line-height: 30px; - font-size: 14px; - } + min-width: 0; + overflow: hidden; + flex: 1; + width: 0; +` + +const NameSpan = styled.span` + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + cursor: help; + font-family: 'Ubuntu'; + line-height: 30px; + font-size: 14px; ` const RemoveIcon = styled(MinusCircleOutlined)`