fix: contentInset doesn't behave on Android
This commit is contained in:
@@ -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',
|
||||
} ]} />
|
||||
);
|
||||
}
|
||||
@@ -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>
|
||||
|
||||
@@ -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} />
|
||||
|
||||
@@ -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 />
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user