This commit is contained in:
Zhiyuan Zheng 2021-04-10 12:13:54 +02:00
parent d4b28df091
commit 933324a2d8
No known key found for this signature in database
GPG Key ID: 078A93AB607D85E0
4 changed files with 7 additions and 4 deletions

View File

@ -236,7 +236,10 @@ const ParseHTML = React.memo(
const [expanded, setExpanded] = useState(false)
const onTextLayout = useCallback(({ nativeEvent }) => {
if (nativeEvent.lines.length >= numberOfLines + 5) {
if (
numberOfLines === 0 ||
nativeEvent.lines.length >= numberOfLines + 5
) {
setExpandAllow(true)
}
}, [])

View File

@ -39,7 +39,7 @@ const TimelineContent = React.memo(
emojis={status.emojis}
mentions={status.mentions}
tags={status.tags}
numberOfLines={1}
numberOfLines={0}
expandHint={t('shared.content.expandHint')}
disableDetails={disableDetails}
/>

View File

@ -62,7 +62,7 @@
"poll": {
"option": {
"placeholder": {
"accessibilityLabel": "Field number {{index}}",
"accessibilityLabel": "Poll option {{index}}",
"single": "Single choice",
"multiple": "Multiple choice"
}

View File

@ -189,7 +189,7 @@
"account": {
"actions": {
"accessibilityLabel": "Actions for user {{user}}",
"accessibilityHint": "You can mute, blokc, report or share this user"
"accessibilityHint": "You can mute, block, report or share this user"
},
"moved": "User moved",
"created_at": "Registered on: {{date}}",