mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2025-12-23 22:18:36 -05:00
MOB-512 representative photo option for PhotosSection and fix protruding image bug
This commit is contained in:
@@ -12,7 +12,7 @@ import Photo from "realmModels/Photo";
|
||||
import getImageDimensions from "sharedHelpers/getImageDimensions";
|
||||
|
||||
type Props = {
|
||||
representativePhoto: Object,
|
||||
representativePhoto?: Object,
|
||||
taxon: Object,
|
||||
obsPhotos: Array<Object>,
|
||||
navToTaxonDetails: ( photo: Object ) => void
|
||||
@@ -189,7 +189,7 @@ const PhotosSection = ( {
|
||||
}
|
||||
|
||||
return (
|
||||
<View className={classnames( "h-[390px]", layoutClasses.containerClass )}>
|
||||
<View className={classnames( "h-[390px] overflow-hidden", layoutClasses.containerClass )}>
|
||||
{renderObservationPhoto( )}
|
||||
{bestTaxonPhotos.length > 0 && renderTaxonPhotos( )}
|
||||
<MediaViewerModal
|
||||
|
||||
Reference in New Issue
Block a user