Fix embeds overlapping each other in chat (#10949)
(cherry picked from commit c3626c80d1)
This commit is contained in:
@@ -40,11 +40,7 @@ import {ModeratedFeedEmbed} from './FeedEmbed'
|
|||||||
import {ImageEmbed} from './ImageEmbed'
|
import {ImageEmbed} from './ImageEmbed'
|
||||||
import {ModeratedListEmbed} from './ListEmbed'
|
import {ModeratedListEmbed} from './ListEmbed'
|
||||||
import {PostPlaceholder as PostPlaceholderText} from './PostPlaceholder'
|
import {PostPlaceholder as PostPlaceholderText} from './PostPlaceholder'
|
||||||
import {
|
import {type CommonProps, type EmbedProps, PostEmbedViewContext} from './types'
|
||||||
type CommonProps,
|
|
||||||
type EmbedProps,
|
|
||||||
type PostEmbedViewContext,
|
|
||||||
} from './types'
|
|
||||||
import {VideoEmbed} from './VideoEmbed'
|
import {VideoEmbed} from './VideoEmbed'
|
||||||
|
|
||||||
export {PostEmbedViewContext} from './types'
|
export {PostEmbedViewContext} from './types'
|
||||||
@@ -356,7 +352,7 @@ export function QuoteEmbed({
|
|||||||
return (
|
return (
|
||||||
<GalleryBleed>
|
<GalleryBleed>
|
||||||
<View
|
<View
|
||||||
style={[a.mt_sm]}
|
style={[viewContext !== PostEmbedViewContext.ChatMessage && a.mt_sm]}
|
||||||
onPointerEnter={linkDisabled ? undefined : onPointerEnter}
|
onPointerEnter={linkDisabled ? undefined : onPointerEnter}
|
||||||
onPointerLeave={linkDisabled ? undefined : onPointerLeave}>
|
onPointerLeave={linkDisabled ? undefined : onPointerLeave}>
|
||||||
<ContentHider
|
<ContentHider
|
||||||
|
|||||||
@@ -77,9 +77,6 @@ let MessageItemEmbed = ({
|
|||||||
minWidth: 280,
|
minWidth: 280,
|
||||||
maxWidth: 360,
|
maxWidth: 360,
|
||||||
}),
|
}),
|
||||||
// Cancel out the embed's internal a.mt_sm so the container's
|
|
||||||
// CLUSTERED_MESSAGE_GAP (2px) is the only spacing applied
|
|
||||||
{marginTop: -a.mt_sm.marginTop},
|
|
||||||
]}>
|
]}>
|
||||||
<Animated.View
|
<Animated.View
|
||||||
style={[a.rounded_xl, a.overflow_hidden, radiiStyle, highlightStyle]}>
|
style={[a.rounded_xl, a.overflow_hidden, radiiStyle, highlightStyle]}>
|
||||||
|
|||||||
Reference in New Issue
Block a user