Skip to content

Commit

Permalink
💄 style: Update provider id
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 committed Sep 9, 2024
1 parent 71e4b64 commit ab362d0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const SuggestionItem = memo<SuggestionItemProps>(
({ className, meta, identifier, models, ...rest }) => {
const { title, description } = meta;

const { cx, styles } = useStyles();
const { cx, styles, theme } = useStyles();

return (
<Flexbox className={cx(styles.container, className)} gap={12} key={identifier} {...rest}>
Expand All @@ -65,11 +65,14 @@ const SuggestionItem = memo<SuggestionItemProps>(
size={24}
title={title}
/>
<Paragraph className={styles.desc} ellipsis={{ rows: 2 }}>
<span style={{ color: theme.colorTextSecondary, fontSize: 12, marginTop: -8 }}>
{title}
{' | '}
{description || '服务商介绍'}
</Paragraph>
</span>
{description && (
<Paragraph className={styles.desc} ellipsis={{ rows: 2 }}>
{description}
</Paragraph>
)}
<Flexbox gap={6} horizontal style={{ flexWrap: 'wrap' }}>
{(models as string[])
.slice(0, 3)
Expand Down
2 changes: 1 addition & 1 deletion src/app/(main)/discover/(list)/providers/features/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const ProviderCard = memo<ProviderCardProps>(({ models, className, meta, identif
title={provider.name}
/>
<span style={{ color: theme.colorTextSecondary, fontSize: 12, marginTop: -8 }}>
@{provider.name}
{provider.name}
</span>
{description && (
<Paragraph className={styles.desc} ellipsis={{ rows: 2 }}>
Expand Down

0 comments on commit ab362d0

Please sign in to comment.