fix: contentInset doesn't behave on Android

This commit is contained in:
Lei Nelissen
2023-04-23 01:25:43 +02:00
parent 6ccfd19dea
commit 1d97830f83
5 changed files with 5 additions and 5 deletions

View File

@@ -109,7 +109,7 @@ export function ColoredBlurView(props: PropsWithChildren<BlurViewProps>) {
} />
) : (
<View {...props} style={[ props.style, {
backgroundColor: scheme === 'light' ? '#f6f6f6f6' : '#333333f6',
backgroundColor: scheme === 'light' ? '#f6f6f6fb' : '#333333fb',
} ]} />
);
}

View File

@@ -29,7 +29,7 @@ export default function CacheSettings() {
}, [dispatch]);
return (
<Container contentInset={{ top: headerHeight }}>
<Container contentContainerStyle={{ paddingTop: headerHeight }}>
<Paragraph>{t('setting-cache-description')}</Paragraph>
<ClearCache title={t('reset-cache')} onPress={handleClearCache} />
</Container>

View File

@@ -32,7 +32,7 @@ export default function LibrarySettings() {
const handleSetLibrary = useCallback(() => navigation.navigate('SetJellyfinServer'), [navigation]);
return (
<Container contentInset={{ top: headerHeight }}>
<Container contentContainerStyle={{ paddingTop: headerHeight }}>
<InputContainer>
<Paragraph style={defaultStyles.text}>{t('jellyfin-server-url')}</Paragraph>
<Input placeholder="https://jellyfin.yourserver.com/" value={jellyfin?.uri} editable={false} style={defaultStyles.input} />

View File

@@ -110,7 +110,7 @@ export default function Sentry() {
});
return (
<ScrollView contentInset={{ top: headerHeight }}>
<ScrollView contentContainerStyle={{ paddingTop: headerHeight }}>
<Container>
<Paragraph>{t('error-reporting-description')}</Paragraph>
<Paragraph />

View File

@@ -20,7 +20,7 @@ export function SettingsList() {
const handleSentryClick = useCallback(() => { navigation.navigate('Sentry'); }, [navigation]);
return (
<ScrollView contentInset={{ top: headerHeight }}>
<ScrollView contentContainerStyle={{ paddingTop: headerHeight }}>
<ListButton onPress={handleLibraryClick}>{t('jellyfin-library')}</ListButton>
<ListButton onPress={handleCacheClick}>{t('setting-cache')}</ListButton>
<ListButton onPress={handleSentryClick}>{t('error-reporting')}</ListButton>