mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Fix CW
This commit is contained in:
@ -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)
|
||||||
}
|
}
|
||||||
}, [])
|
}, [])
|
||||||
|
@ -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}
|
||||||
/>
|
/>
|
||||||
|
@ -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"
|
||||||
}
|
}
|
||||||
|
@ -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}}",
|
||||||
|
Reference in New Issue
Block a user