tangled
alpha
login
or
join now
pyrox.dev
/
witchsky
forked from
jollywhoppers.com/witchsky.app
0
fork
atom
Bluesky app fork with some witchin' additions 💫
0
fork
atom
overview
issues
pulls
pipelines
Remove demo-mode spacing tweak
Paul Frazee
11 months ago
7b245935
55795dc2
+6
-10
1 changed file
expand all
collapse all
unified
split
src
view
com
util
post-embeds
index.tsx
+6
-10
src/view/com/util/post-embeds/index.tsx
reviewed
···
6
6
View,
7
7
type ViewStyle,
8
8
} from 'react-native'
9
9
-
import {type MeasuredDimensions, runOnJS, runOnUI} from 'react-native-reanimated'
9
9
+
import {
10
10
+
type MeasuredDimensions,
11
11
+
runOnJS,
12
12
+
runOnUI,
13
13
+
} from 'react-native-reanimated'
10
14
import {Image} from 'expo-image'
11
15
import {
12
16
AppBskyEmbedExternal,
···
29
33
import {atoms as a, useTheme} from '#/alf'
30
34
import * as ListCard from '#/components/ListCard'
31
35
import {Embed as StarterPackCard} from '#/components/StarterPack/StarterPackCard'
32
32
-
import {useDemoMode} from '#/storage/hooks/demo-mode'
33
36
import {ContentHider} from '../../../../components/moderation/ContentHider'
34
37
import {type Dimensions} from '../../lightbox/ImageViewing/@types'
35
38
import {AutoSizedImage} from '../images/AutoSizedImage'
···
65
68
viewContext?: PostEmbedViewContext
66
69
}) {
67
70
const {openLightbox} = useLightboxControls()
68
68
-
const [demoMode] = useDemoMode()
69
71
70
72
// quote post with media
71
73
// =
···
180
182
const image = images[0]
181
183
return (
182
184
<ContentHider modui={moderation?.ui('contentMedia')}>
183
183
-
<View
184
184
-
style={[
185
185
-
a.mt_sm,
186
186
-
style,
187
187
-
demoMode && a.mt_md,
188
188
-
demoMode && a.mb_xs,
189
189
-
]}>
185
185
+
<View style={[a.mt_sm, style]}>
190
186
<AutoSizedImage
191
187
crop={
192
188
viewContext === PostEmbedViewContext.ThreadHighlighted