mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Added a hint to try to avoid long descriptions
refs https://github.com/TryGhost/Product/issues/3888
This commit is contained in:
parent
8af7b022fd
commit
f9fbcb3376
1 changed files with 3 additions and 2 deletions
|
@ -39,7 +39,7 @@ const RecommendationReasonForm: React.FC<Props<EditOrAddRecommendation | Recomme
|
||||||
<div className='flex flex-col gap-1'>
|
<div className='flex flex-col gap-1'>
|
||||||
<div className="flex items-center gap-2">
|
<div className="flex items-center gap-2">
|
||||||
<RecommendationIcon {...formState} />
|
<RecommendationIcon {...formState} />
|
||||||
<span className='text-[1.6rem] font-semibold text-grey-900'>{formState.title}</span>
|
<span className='line-clamp-1 text-[1.6rem] font-semibold text-grey-900'>{formState.title}</span>
|
||||||
</div>
|
</div>
|
||||||
{formState.reason && <span className='text-md font-medium leading-snug text-grey-700'>{formState.reason}</span>}
|
{formState.reason && <span className='text-md font-medium leading-snug text-grey-700'>{formState.reason}</span>}
|
||||||
</div>
|
</div>
|
||||||
|
@ -57,8 +57,9 @@ const RecommendationReasonForm: React.FC<Props<EditOrAddRecommendation | Recomme
|
||||||
/>
|
/>
|
||||||
<TextArea
|
<TextArea
|
||||||
clearBg={true}
|
clearBg={true}
|
||||||
|
hint='Optional, try to keep it under 156 characters'
|
||||||
rows={3}
|
rows={3}
|
||||||
title="Description (optional)"
|
title="Description"
|
||||||
value={formState.reason ?? ''}
|
value={formState.reason ?? ''}
|
||||||
onChange={e => updateForm(state => ({...state, reason: e.target.value}))}
|
onChange={e => updateForm(state => ({...state, reason: e.target.value}))}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Add table
Reference in a new issue