mirror of
https://github.com/selfxyz/self.git
synced 2026-04-05 03:00:53 -04:00
[SEL-46] FE: Add minimum bottom padding (#510)
* fix bottom padding for smaller screens * fix podfile post install hook permissions check * update pod lock and disable git commit action step for now * update lock * fix flaky android downloads that causes pipeline to crash
This commit is contained in:
@@ -88,11 +88,12 @@ const BottomSection: React.FC<BottomSectionProps> = ({
|
||||
style,
|
||||
...props
|
||||
}) => {
|
||||
const { bottom } = useSafeAreaInsets();
|
||||
const { bottom: safeAreaBottom } = useSafeAreaInsets();
|
||||
const incomingBottom = props.paddingBottom ?? props.pb ?? 0;
|
||||
const minBottom = Math.max(safeAreaBottom, 10);
|
||||
|
||||
const totalBottom =
|
||||
typeof incomingBottom === 'number' ? bottom + incomingBottom : bottom;
|
||||
typeof incomingBottom === 'number' ? minBottom + incomingBottom : minBottom;
|
||||
return (
|
||||
<View
|
||||
{...props}
|
||||
|
||||
Reference in New Issue
Block a user