Remove demo-mode spacing tweak

This commit is contained in:
Paul Frazee
2025-04-25 10:49:10 -07:00
parent 55795dc262
commit 7b245935ea
+6 -10
View File
@@ -6,7 +6,11 @@ import {
View,
type ViewStyle,
} from 'react-native'
import {type MeasuredDimensions, runOnJS, runOnUI} from 'react-native-reanimated'
import {
type MeasuredDimensions,
runOnJS,
runOnUI,
} from 'react-native-reanimated'
import {Image} from 'expo-image'
import {
AppBskyEmbedExternal,
@@ -29,7 +33,6 @@ import {FeedSourceCard} from '#/view/com/feeds/FeedSourceCard'
import {atoms as a, useTheme} from '#/alf'
import * as ListCard from '#/components/ListCard'
import {Embed as StarterPackCard} from '#/components/StarterPack/StarterPackCard'
import {useDemoMode} from '#/storage/hooks/demo-mode'
import {ContentHider} from '../../../../components/moderation/ContentHider'
import {type Dimensions} from '../../lightbox/ImageViewing/@types'
import {AutoSizedImage} from '../images/AutoSizedImage'
@@ -65,7 +68,6 @@ export function PostEmbeds({
viewContext?: PostEmbedViewContext
}) {
const {openLightbox} = useLightboxControls()
const [demoMode] = useDemoMode()
// quote post with media
// =
@@ -180,13 +182,7 @@ export function PostEmbeds({
const image = images[0]
return (
<ContentHider modui={moderation?.ui('contentMedia')}>
<View
style={[
a.mt_sm,
style,
demoMode && a.mt_md,
demoMode && a.mb_xs,
]}>
<View style={[a.mt_sm, style]}>
<AutoSizedImage
crop={
viewContext === PostEmbedViewContext.ThreadHighlighted