mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 05:37:34 +03:00
Added a badge to "Your recommendation" items that have 1-click subscribe
refs https://github.com/TryGhost/Product/issues/3888
This commit is contained in:
parent
5e466a90be
commit
8af7b022fd
@ -29,9 +29,10 @@ const RecommendationItem: React.FC<{recommendation: Recommendation}> = ({recomme
|
||||
<TableCell onClick={showDetails}>
|
||||
<div className='group flex items-center gap-3 hover:cursor-pointer'>
|
||||
<div className={`flex grow flex-col`}>
|
||||
<div className="mb-1 flex items-center gap-2">
|
||||
<div className="mb-0.5 flex items-center gap-2">
|
||||
<RecommendationIcon {...recommendation} />
|
||||
<span className='line-clamp-1'>{recommendation.title}</span>
|
||||
<span className='line-clamp-1 font-medium'>{recommendation.title}</span>
|
||||
{showSubscribes && <span className='-mb-px inline-flex h-[19px] shrink-0 items-center rounded-full bg-grey-200 px-1.5 py-0.5 text-2xs font-semibold uppercase tracking-wide text-grey-700'>1-click subscribe</span>}
|
||||
</div>
|
||||
<span className='line-clamp-1 text-xs leading-snug text-grey-700'>{recommendation.reason || 'No reason added'}</span>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user