pl-fe: or maybe apply line-clamp conditionally
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
ec28ee979c
commit
f81dd5d70d
1 changed files with 4 additions and 1 deletions
|
@ -187,7 +187,10 @@ const StatusContent: React.FC<IStatusContent> = React.memo(({
|
|||
if (spoilerText) {
|
||||
output.push(
|
||||
<Text key='spoiler' size='2xl' weight='medium'>
|
||||
<span className='line-clamp-3' dangerouslySetInnerHTML={{ __html: spoilerText }} />
|
||||
<span
|
||||
className={clsx({ 'line-clamp-3': !expanded })}
|
||||
dangerouslySetInnerHTML={{ __html: spoilerText }}
|
||||
/>
|
||||
{expandable && (
|
||||
<Button
|
||||
className='ml-2 align-middle'
|
||||
|
|
Loading…
Reference in a new issue