Fix handle collapse on Android (#5504)
This commit is contained in:
@@ -11,6 +11,7 @@ import {NON_BREAKING_SPACE} from '#/lib/strings/constants'
|
|||||||
import {sanitizeDisplayName} from '#/lib/strings/display-names'
|
import {sanitizeDisplayName} from '#/lib/strings/display-names'
|
||||||
import {sanitizeHandle} from '#/lib/strings/handles'
|
import {sanitizeHandle} from '#/lib/strings/handles'
|
||||||
import {niceDate} from '#/lib/strings/time'
|
import {niceDate} from '#/lib/strings/time'
|
||||||
|
import {isAndroid} from '#/platform/detection'
|
||||||
import {precacheProfile} from '#/state/queries/profile'
|
import {precacheProfile} from '#/state/queries/profile'
|
||||||
import {atoms as a, useTheme, web} from '#/alf'
|
import {atoms as a, useTheme, web} from '#/alf'
|
||||||
import {WebOnlyInlineLinkText} from '#/components/Link'
|
import {WebOnlyInlineLinkText} from '#/components/Link'
|
||||||
@@ -70,7 +71,7 @@ let PostMeta = (opts: PostMetaOpts): React.ReactNode => {
|
|||||||
</View>
|
</View>
|
||||||
)}
|
)}
|
||||||
<ProfileHoverCard inline did={opts.author.did}>
|
<ProfileHoverCard inline did={opts.author.did}>
|
||||||
<Text numberOfLines={1} style={[a.flex_shrink]}>
|
<Text numberOfLines={1} style={[isAndroid ? a.flex_1 : a.flex_shrink]}>
|
||||||
<WebOnlyInlineLinkText
|
<WebOnlyInlineLinkText
|
||||||
to={profileLink}
|
to={profileLink}
|
||||||
label={_(msg`View profile`)}
|
label={_(msg`View profile`)}
|
||||||
@@ -102,11 +103,13 @@ let PostMeta = (opts: PostMetaOpts): React.ReactNode => {
|
|||||||
</Text>
|
</Text>
|
||||||
</ProfileHoverCard>
|
</ProfileHoverCard>
|
||||||
|
|
||||||
<Text
|
{!isAndroid && (
|
||||||
style={[a.text_md, t.atoms.text_contrast_medium]}
|
<Text
|
||||||
accessible={false}>
|
style={[a.text_md, t.atoms.text_contrast_medium]}
|
||||||
·
|
accessible={false}>
|
||||||
</Text>
|
·
|
||||||
|
</Text>
|
||||||
|
)}
|
||||||
|
|
||||||
<TimeElapsed timestamp={opts.timestamp}>
|
<TimeElapsed timestamp={opts.timestamp}>
|
||||||
{({timeElapsed}) => (
|
{({timeElapsed}) => (
|
||||||
|
|||||||
Reference in New Issue
Block a user