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

Fixed #119 and translation

This commit is contained in:
Zhiyuan Zheng
2021-05-23 22:40:42 +02:00
parent 0517d2fae2
commit 0190b35b57
17 changed files with 168 additions and 113 deletions

View File

@ -164,6 +164,7 @@ export interface Props {
expandHint?: string
highlighted?: boolean
disableDetails?: boolean
selectable?: boolean
}
const ParseHTML = React.memo(
@ -178,7 +179,8 @@ const ParseHTML = React.memo(
numberOfLines = 10,
expandHint,
highlighted = false,
disableDetails = false
disableDetails = false,
selectable = false
}: Props) => {
const adaptiveFontsize = useSelector(getSettingsFontsize)
const adaptedFontsize = adaptiveScale(
@ -255,6 +257,7 @@ const ParseHTML = React.memo(
numberOfLines={
expandAllow ? (expanded ? 999 : numberOfLines) : undefined
}
selectable={selectable}
/>
{expandAllow ? (
<Pressable