1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00
This commit is contained in:
Zhiyuan Zheng
2021-04-10 12:13:54 +02:00
parent d4b28df091
commit 933324a2d8
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 [expanded, setExpanded] = useState(false)
const onTextLayout = useCallback(({ nativeEvent }) => { const onTextLayout = useCallback(({ nativeEvent }) => {
if (nativeEvent.lines.length >= numberOfLines + 5) { if (
numberOfLines === 0 ||
nativeEvent.lines.length >= numberOfLines + 5
) {
setExpandAllow(true) setExpandAllow(true)
} }
}, []) }, [])

View File

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

View File

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

View File

@ -189,7 +189,7 @@
"account": { "account": {
"actions": { "actions": {
"accessibilityLabel": "Actions for user {{user}}", "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", "moved": "User moved",
"created_at": "Registered on: {{date}}", "created_at": "Registered on: {{date}}",