Add hovercards to "Reply To" (#3587)
* Add hovercard for Reply To * Tweak durations
This commit is contained in:
parent
1e26654a9b
commit
480fa10e0b
3 changed files with 20 additions and 15 deletions
|
@ -23,6 +23,7 @@ import {countLines} from 'lib/strings/helpers'
|
|||
import {colors, s} from 'lib/styles'
|
||||
import {RQKEY as RQKEY_URI} from 'state/queries/resolve-uri'
|
||||
import {atoms as a} from '#/alf'
|
||||
import {ProfileHoverCard} from '#/components/ProfileHoverCard'
|
||||
import {RichText} from '#/components/RichText'
|
||||
import {ContentHider} from '../../../components/moderation/ContentHider'
|
||||
import {LabelsOnMyPost} from '../../../components/moderation/LabelsOnMe'
|
||||
|
@ -176,12 +177,14 @@ function PostInner({
|
|||
numberOfLines={1}>
|
||||
<Trans context="description">
|
||||
Reply to{' '}
|
||||
<UserInfoText
|
||||
type="sm"
|
||||
did={replyAuthorDid}
|
||||
attr="displayName"
|
||||
style={[pal.textLight]}
|
||||
/>
|
||||
<ProfileHoverCard inline did={replyAuthorDid}>
|
||||
<UserInfoText
|
||||
type="sm"
|
||||
did={replyAuthorDid}
|
||||
attr="displayName"
|
||||
style={[pal.textLight]}
|
||||
/>
|
||||
</ProfileHoverCard>
|
||||
</Trans>
|
||||
</Text>
|
||||
</View>
|
||||
|
|
|
@ -284,12 +284,14 @@ let FeedItemInner = ({
|
|||
numberOfLines={1}>
|
||||
<Trans context="description">
|
||||
Reply to{' '}
|
||||
<UserInfoText
|
||||
type="md"
|
||||
did={replyAuthorDid}
|
||||
attr="displayName"
|
||||
style={[pal.textLight]}
|
||||
/>
|
||||
<ProfileHoverCard inline did={replyAuthorDid}>
|
||||
<UserInfoText
|
||||
type="md"
|
||||
did={replyAuthorDid}
|
||||
attr="displayName"
|
||||
style={[pal.textLight]}
|
||||
/>
|
||||
</ProfileHoverCard>
|
||||
</Trans>
|
||||
</Text>
|
||||
</View>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue