style(user-models): larger logo, restyle playground button on card

This commit is contained in:
jialin
2026-07-09 20:36:52 +08:00
committed by jialin
parent 3d88b2825b
commit 0436872093
+14 -4
View File
@@ -1,4 +1,5 @@
import { import {
IconFont,
StatusTag, StatusTag,
TagsWrapper, TagsWrapper,
TemplateCard, TemplateCard,
@@ -85,8 +86,8 @@ const ModelItemContent = styled.div`
`; `;
const ModelLogo = styled.img` const ModelLogo = styled.img`
width: 24px; width: 32px;
height: 24px; height: 32px;
border-radius: 4px; border-radius: 4px;
object-fit: contain; object-fit: contain;
flex: none; flex: none;
@@ -192,7 +193,7 @@ const ModelItem: React.FC<{
onClick={handleCardClick} onClick={handleCardClick}
header={ header={
<Header> <Header>
<span className="text gap-8"> <span className="text gap-16">
<ModelLogo src={getModelLogo(model.name)} alt="" /> <ModelLogo src={getModelLogo(model.name)} alt="" />
<span>{model.name}</span> <span>{model.name}</span>
</span> </span>
@@ -251,11 +252,20 @@ const ModelItem: React.FC<{
{[MyModelsStatusValueMap.Active].includes(model.status) && ( {[MyModelsStatusValueMap.Active].includes(model.status) && (
<Button <Button
size="middle" size="middle"
type="default"
className="btn" className="btn"
type="primary" style={{
borderRadius: 6,
paddingInline: 12
}}
onClick={handleOpenPlayGroundClick} onClick={handleOpenPlayGroundClick}
> >
{intl.formatMessage({ id: 'models.openinplayground' })} {intl.formatMessage({ id: 'models.openinplayground' })}
<IconFont
type="icon-down2"
rotate={-90}
style={{ marginLeft: 4 }}
></IconFont>
</Button> </Button>
)} )}
</div> </div>