mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-24 15:45:35 +08:00
fix(templates): show description tagline on template cards (#3335)
This commit is contained in:
@@ -21,6 +21,7 @@ interface TemplateCardProps {
|
||||
blocks?: string[]
|
||||
className?: string
|
||||
state?: WorkflowState
|
||||
description?: string | null
|
||||
isStarred?: boolean
|
||||
isVerified?: boolean
|
||||
}
|
||||
@@ -124,6 +125,7 @@ function TemplateCardInner({
|
||||
blocks = [],
|
||||
className,
|
||||
state,
|
||||
description,
|
||||
isStarred = false,
|
||||
isVerified = false,
|
||||
}: TemplateCardProps) {
|
||||
@@ -270,6 +272,12 @@ function TemplateCardInner({
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{description && (
|
||||
<p className='mt-[4px] truncate pl-[2px] text-[12px] text-[var(--text-tertiary)]'>
|
||||
{description}
|
||||
</p>
|
||||
)}
|
||||
|
||||
<div className='mt-[10px] flex items-center justify-between'>
|
||||
<div className='flex min-w-0 items-center gap-[8px]'>
|
||||
{authorImageUrl ? (
|
||||
|
||||
@@ -196,6 +196,7 @@ export default function Templates({
|
||||
key={template.id}
|
||||
id={template.id}
|
||||
title={template.name}
|
||||
description={template.details?.tagline}
|
||||
author={template.creator?.name || 'Unknown'}
|
||||
authorImageUrl={template.creator?.profileImageUrl || null}
|
||||
usageCount={template.views.toString()}
|
||||
|
||||
@@ -18,6 +18,7 @@ interface TemplateCardProps {
|
||||
blocks?: string[]
|
||||
className?: string
|
||||
state?: WorkflowState
|
||||
description?: string | null
|
||||
isStarred?: boolean
|
||||
isVerified?: boolean
|
||||
}
|
||||
@@ -127,6 +128,7 @@ function TemplateCardInner({
|
||||
blocks = [],
|
||||
className,
|
||||
state,
|
||||
description,
|
||||
isStarred = false,
|
||||
isVerified = false,
|
||||
}: TemplateCardProps) {
|
||||
@@ -277,6 +279,12 @@ function TemplateCardInner({
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{description && (
|
||||
<p className='mt-[4px] truncate pl-[2px] text-[12px] text-[var(--text-tertiary)]'>
|
||||
{description}
|
||||
</p>
|
||||
)}
|
||||
|
||||
<div className='mt-[10px] flex items-center justify-between'>
|
||||
<div className='flex min-w-0 flex-1 items-center gap-[6px]'>
|
||||
{authorImageUrl ? (
|
||||
|
||||
@@ -222,6 +222,7 @@ export default function Templates({
|
||||
key={template.id}
|
||||
id={template.id}
|
||||
title={template.name}
|
||||
description={template.details?.tagline}
|
||||
author={template.creator?.name || 'Unknown'}
|
||||
authorImageUrl={template.creator?.profileImageUrl || null}
|
||||
usageCount={template.views.toString()}
|
||||
|
||||
Reference in New Issue
Block a user