Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions apps/sim/app/templates/components/template-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ interface TemplateCardProps {
blocks?: string[]
className?: string
state?: WorkflowState
description?: string | null
isStarred?: boolean
isVerified?: boolean
}
Expand Down Expand Up @@ -124,6 +125,7 @@ function TemplateCardInner({
blocks = [],
className,
state,
description,
isStarred = false,
isVerified = false,
}: TemplateCardProps) {
Expand Down Expand Up @@ -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 ? (
Expand Down
1 change: 1 addition & 0 deletions apps/sim/app/templates/templates.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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()}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ interface TemplateCardProps {
blocks?: string[]
className?: string
state?: WorkflowState
description?: string | null
isStarred?: boolean
isVerified?: boolean
}
Expand Down Expand Up @@ -127,6 +128,7 @@ function TemplateCardInner({
blocks = [],
className,
state,
description,
isStarred = false,
isVerified = false,
}: TemplateCardProps) {
Expand Down Expand Up @@ -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 ? (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()}
Expand Down