WIP quote embed hover
This commit is contained in:
@@ -22,6 +22,7 @@ import {InfoCircleIcon} from 'lib/icons'
|
|||||||
import {makeProfileLink} from 'lib/routes/links'
|
import {makeProfileLink} from 'lib/routes/links'
|
||||||
import {ComposerOptsQuote} from 'state/shell/composer'
|
import {ComposerOptsQuote} from 'state/shell/composer'
|
||||||
import {atoms as a} from '#/alf'
|
import {atoms as a} from '#/alf'
|
||||||
|
import {ProfileHoverCard} from '#/components/ProfileHoverCard'
|
||||||
import {RichText} from '#/components/RichText'
|
import {RichText} from '#/components/RichText'
|
||||||
import {ContentHider} from '../../../../components/moderation/ContentHider'
|
import {ContentHider} from '../../../../components/moderation/ContentHider'
|
||||||
import {PostAlerts} from '../../../../components/moderation/PostAlerts'
|
import {PostAlerts} from '../../../../components/moderation/PostAlerts'
|
||||||
@@ -44,11 +45,29 @@ export function MaybeQuoteEmbed({
|
|||||||
AppBskyFeedPost.validateRecord(embed.record.value).success
|
AppBskyFeedPost.validateRecord(embed.record.value).success
|
||||||
) {
|
) {
|
||||||
return (
|
return (
|
||||||
<QuoteEmbedModerated
|
<View style={[a.relative]}>
|
||||||
viewRecord={embed.record}
|
<ProfileHoverCard did={embed.record.author.did}>
|
||||||
postRecord={embed.record.value}
|
<View
|
||||||
style={style}
|
nativeID="foo"
|
||||||
/>
|
style={[
|
||||||
|
a.absolute,
|
||||||
|
a.z_50,
|
||||||
|
{
|
||||||
|
top: a.pt_md.paddingTop,
|
||||||
|
left: a.pt_md.paddingTop,
|
||||||
|
height: a.pt_lg.paddingTop,
|
||||||
|
width: a.pt_lg.paddingTop,
|
||||||
|
},
|
||||||
|
]}
|
||||||
|
/>
|
||||||
|
</ProfileHoverCard>
|
||||||
|
|
||||||
|
<QuoteEmbedModerated
|
||||||
|
viewRecord={embed.record}
|
||||||
|
postRecord={embed.record.value}
|
||||||
|
style={style}
|
||||||
|
/>
|
||||||
|
</View>
|
||||||
)
|
)
|
||||||
} else if (AppBskyEmbedRecord.isViewBlocked(embed.record)) {
|
} else if (AppBskyEmbedRecord.isViewBlocked(embed.record)) {
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user