mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 05:37:34 +03:00
Updated "Your recommendations" list design
refs https://github.com/TryGhost/Product/issues/3786
This commit is contained in:
parent
d5ad5d2dd0
commit
4e04b8c2d2
@ -34,13 +34,13 @@ const RecommendationItem: React.FC<{recommendation: Recommendation}> = ({recomme
|
||||
<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>
|
||||
<span className='line-clamp-1 text-xs leading-snug text-grey-700'>{recommendation.url || 'No reason added'}</span>
|
||||
</div>
|
||||
</div>
|
||||
</TableCell>
|
||||
<TableCell className='hidden md:!visible md:!table-cell' onClick={showDetails}>
|
||||
<div className={`flex grow flex-col`}>
|
||||
{count === 0 ? <span className="text-grey-500">-</span> : <span>{count}</span>}
|
||||
{count === 0 ? <span className="text-grey-500">0</span> : <span>{count}</span>}
|
||||
<span className='whitespace-nowrap text-xs text-grey-700'>{showSubscribes ? 'Subscribers from you' : 'Clicks from you'}</span>
|
||||
</div>
|
||||
</TableCell>
|
||||
|
Loading…
Reference in New Issue
Block a user