1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Refined filter view

This commit is contained in:
xmflsct
2023-01-26 13:59:42 +01:00
parent 2a806695ca
commit e8eb62e2d0
9 changed files with 304 additions and 225 deletions

View File

@ -309,7 +309,11 @@ const ParseHTML: React.FC<Props> = ({
height: numberOfLines === 1 && !expanded ? 0 : undefined
}}
numberOfLines={
typeof totalLines === 'number' ? (expanded ? 999 : numberOfLines) : MAX_ALLOWED_LINES
typeof totalLines === 'number'
? expanded
? 999
: numberOfLines
: Math.max(MAX_ALLOWED_LINES, numberOfLines)
}
selectable={selectable}
/>