refactor(SelectModelPopup): replace HStack with Flex component (#10337)

refactor(SelectModelPopup): replace HStack with Flex component for layout
This commit is contained in:
Phantom 2025-09-24 20:10:12 +08:00 committed by GitHub
parent ac3dfcbfbe
commit 0a37146ba8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,6 +1,6 @@
import { PushpinOutlined } from '@ant-design/icons'
import { Flex } from '@cherrystudio/ui'
import { FreeTrialModelTag } from '@renderer/components/FreeTrialModelTag'
import { HStack } from '@renderer/components/Layout'
import ModelTagsWithLabel from '@renderer/components/ModelTagsWithLabel'
import { TopView } from '@renderer/components/TopView'
import { DynamicVirtualList, type DynamicVirtualListRef } from '@renderer/components/VirtualList'
@ -111,10 +111,10 @@ const PopupContainer: React.FC<Props> = ({ model, filter: baseFilter, showTagFil
type: 'model',
name: (
<ModelName>
<HStack alignItems="center">
<Flex className="items-center">
{model.name}
{isPinned && <span style={{ color: 'var(--color-text-3)' }}> | {groupName}</span>}
</HStack>
</Flex>
{isCherryAi && <FreeTrialModelTag model={model} showLabel={false} />}
</ModelName>
),