mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2026-05-07 23:26:56 -04:00
fix: prevent content from scrolling under ButtonBar on TaxonDetails
This does something similar in the Explore FiltersModal.
This commit is contained in:
@@ -748,7 +748,7 @@ const FilterModal = ( {
|
||||
{/*
|
||||
The iconic taxon chooser above should fill all width so we add padding here
|
||||
*/}
|
||||
<View className="px-4">
|
||||
<View className="px-4 pb-4">
|
||||
{/* Location Section */}
|
||||
<View className="mb-7">
|
||||
<Heading4 className="mb-5">{t( "LOCATION" )}</Heading4>
|
||||
@@ -1189,7 +1189,7 @@ const FilterModal = ( {
|
||||
)}
|
||||
|
||||
{/* Photo licensing section */}
|
||||
<View className="mb-7">
|
||||
<View>
|
||||
<Heading4 className="mb-5">{t( "PHOTO-LICENSING" )}</Heading4>
|
||||
<Button
|
||||
text={photoLicenseValues[photoLicense]?.label}
|
||||
@@ -1203,20 +1203,15 @@ const FilterModal = ( {
|
||||
</View>
|
||||
</View>
|
||||
</ScrollView>
|
||||
{/* This view is to offset the absolute ButtonBar below */}
|
||||
<View className="mb-10" />
|
||||
<ButtonBar sticky containerClass="z-9">
|
||||
<View className="flex-1 flex-row items-center">
|
||||
<Button
|
||||
disabled={!differsFromSnapshot || hasError}
|
||||
className="flex-1"
|
||||
level="focus"
|
||||
text={t( "APPLY-FILTERS" )}
|
||||
onPress={closeModal}
|
||||
accessibilityLabel={t( "Apply-filters" )}
|
||||
accessibilityState={{ disabled: !differsFromSnapshot || hasError }}
|
||||
/>
|
||||
</View>
|
||||
<ButtonBar>
|
||||
<Button
|
||||
disabled={!differsFromSnapshot || hasError}
|
||||
level="focus"
|
||||
text={t( "APPLY-FILTERS" )}
|
||||
onPress={closeModal}
|
||||
accessibilityLabel={t( "Apply-filters" )}
|
||||
accessibilityState={{ disabled: !differsFromSnapshot || hasError }}
|
||||
/>
|
||||
</ButtonBar>
|
||||
|
||||
{/* BottomSheets */}
|
||||
|
||||
@@ -9,7 +9,7 @@ const DROP_SHADOW = getShadow( {
|
||||
|
||||
interface Props extends PropsWithChildren {
|
||||
containerClass?: string,
|
||||
onLayout: () => void,
|
||||
onLayout?: () => void,
|
||||
sticky?: boolean
|
||||
}
|
||||
|
||||
|
||||
@@ -344,7 +344,7 @@ const TaxonDetails = ( ): Node => {
|
||||
/>
|
||||
</ScrollViewWrapper>
|
||||
{showSelectButton && (
|
||||
<ButtonBar sticky containerClass="items-center z-50">
|
||||
<ButtonBar containerClass="items-center z-50">
|
||||
<Button
|
||||
className="max-w-[500px] w-full"
|
||||
level="focus"
|
||||
|
||||
Reference in New Issue
Block a user