Revert unnecessary change
This commit is contained in:
@@ -12,7 +12,7 @@ import {useLightboxControls} from '#/state/lightbox'
|
|||||||
import {type Dimensions} from '#/view/com/lightbox/ImageViewing/@types'
|
import {type Dimensions} from '#/view/com/lightbox/ImageViewing/@types'
|
||||||
import {atoms as a} from '#/alf'
|
import {atoms as a} from '#/alf'
|
||||||
import {AutoSizedImage} from '#/components/images/AutoSizedImage'
|
import {AutoSizedImage} from '#/components/images/AutoSizedImage'
|
||||||
import {Gallery} from '#/components/images/Gallery'
|
import {ImageLayoutGrid} from '#/components/images/ImageLayoutGrid'
|
||||||
import {PostEmbedViewContext} from '#/components/Post/Embed/types'
|
import {PostEmbedViewContext} from '#/components/Post/Embed/types'
|
||||||
import {type EmbedType} from '#/types/bsky/post'
|
import {type EmbedType} from '#/types/bsky/post'
|
||||||
import {type CommonProps} from './types'
|
import {type CommonProps} from './types'
|
||||||
@@ -57,11 +57,7 @@ export function ImageEmbed({
|
|||||||
'worklet'
|
'worklet'
|
||||||
const rects: (MeasuredDimensions | null)[] = []
|
const rects: (MeasuredDimensions | null)[] = []
|
||||||
for (const r of refs) {
|
for (const r of refs) {
|
||||||
try {
|
rects.push(measure(r))
|
||||||
rects.push(measure(r))
|
|
||||||
} catch {
|
|
||||||
rects.push(null)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
runOnJS(_openLightbox)(index, rects, fetchedDims)
|
runOnJS(_openLightbox)(index, rects, fetchedDims)
|
||||||
})()
|
})()
|
||||||
@@ -101,7 +97,7 @@ export function ImageEmbed({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<View style={[a.mt_sm, rest.style]}>
|
<View style={[a.mt_sm, rest.style]}>
|
||||||
<Gallery
|
<ImageLayoutGrid
|
||||||
images={images}
|
images={images}
|
||||||
onPress={onPress}
|
onPress={onPress}
|
||||||
onPressIn={onPressIn}
|
onPressIn={onPressIn}
|
||||||
|
|||||||
Reference in New Issue
Block a user