Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Allow images to use specified aspectRatios (#2558)

authored by

Eric Bailey and committed by
GitHub
89f41050 66b8774e

+2 -15
+2 -15
src/view/com/util/post-embeds/index.tsx
··· 22 22 import {ImageLayoutGrid} from '../images/ImageLayoutGrid' 23 23 import {useLightboxControls, ImagesLightbox} from '#/state/lightbox' 24 24 import {usePalette} from 'lib/hooks/usePalette' 25 - import {useWebMediaQueries} from 'lib/hooks/useWebMediaQueries' 26 25 import {ExternalLinkEmbed} from './ExternalLinkEmbed' 27 26 import {MaybeQuoteEmbed} from './QuoteEmbed' 28 27 import {AutoSizedImage} from '../images/AutoSizedImage' ··· 51 50 }) { 52 51 const pal = usePalette('default') 53 52 const {openLightbox} = useLightboxControls() 54 - const {isMobile} = useWebMediaQueries() 55 53 56 54 // quote post with media 57 55 // = ··· 129 127 dimensionsHint={aspectRatio} 130 128 onPress={() => _openLightbox(0)} 131 129 onPressIn={() => onPressIn(0)} 132 - style={[ 133 - styles.singleImage, 134 - isMobile && styles.singleImageMobile, 135 - ]}> 130 + style={[styles.singleImage]}> 136 131 {alt === '' ? null : ( 137 132 <View style={styles.altContainer}> 138 133 <Text style={styles.alt} accessible={false}> ··· 151 146 images={embed.images} 152 147 onPress={_openLightbox} 153 148 onPressIn={onPressIn} 154 - style={ 155 - embed.images.length === 1 156 - ? [styles.singleImage, isMobile && styles.singleImageMobile] 157 - : undefined 158 - } 149 + style={embed.images.length === 1 ? [styles.singleImage] : undefined} 159 150 /> 160 151 </View> 161 152 ) ··· 188 179 }, 189 180 singleImage: { 190 181 borderRadius: 8, 191 - maxHeight: 1000, 192 - }, 193 - singleImageMobile: { 194 - maxHeight: 500, 195 182 }, 196 183 extOuter: { 197 184 borderWidth: 1,