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, {
|
<View {...props} style={[ props.style, {
|
||||||
backgroundColor: scheme === 'light' ? '#f6f6f6f6' : '#333333f6',
|
backgroundColor: scheme === 'light' ? '#f6f6f6fb' : '#333333fb',
|
||||||
} ]} />
|
} ]} />
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -29,7 +29,7 @@ export default function CacheSettings() {
|
|||||||
}, [dispatch]);
|
}, [dispatch]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Container contentInset={{ top: headerHeight }}>
|
<Container contentContainerStyle={{ paddingTop: headerHeight }}>
|
||||||
<Paragraph>{t('setting-cache-description')}</Paragraph>
|
<Paragraph>{t('setting-cache-description')}</Paragraph>
|
||||||
<ClearCache title={t('reset-cache')} onPress={handleClearCache} />
|
<ClearCache title={t('reset-cache')} onPress={handleClearCache} />
|
||||||
</Container>
|
</Container>
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ export default function LibrarySettings() {
|
|||||||
const handleSetLibrary = useCallback(() => navigation.navigate('SetJellyfinServer'), [navigation]);
|
const handleSetLibrary = useCallback(() => navigation.navigate('SetJellyfinServer'), [navigation]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Container contentInset={{ top: headerHeight }}>
|
<Container contentContainerStyle={{ paddingTop: headerHeight }}>
|
||||||
<InputContainer>
|
<InputContainer>
|
||||||
<Paragraph style={defaultStyles.text}>{t('jellyfin-server-url')}</Paragraph>
|
<Paragraph style={defaultStyles.text}>{t('jellyfin-server-url')}</Paragraph>
|
||||||
<Input placeholder="https://jellyfin.yourserver.com/" value={jellyfin?.uri} editable={false} style={defaultStyles.input} />
|
<Input placeholder="https://jellyfin.yourserver.com/" value={jellyfin?.uri} editable={false} style={defaultStyles.input} />
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ export default function Sentry() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ScrollView contentInset={{ top: headerHeight }}>
|
<ScrollView contentContainerStyle={{ paddingTop: headerHeight }}>
|
||||||
<Container>
|
<Container>
|
||||||
<Paragraph>{t('error-reporting-description')}</Paragraph>
|
<Paragraph>{t('error-reporting-description')}</Paragraph>
|
||||||
<Paragraph />
|
<Paragraph />
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ export function SettingsList() {
|
|||||||
const handleSentryClick = useCallback(() => { navigation.navigate('Sentry'); }, [navigation]);
|
const handleSentryClick = useCallback(() => { navigation.navigate('Sentry'); }, [navigation]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ScrollView contentInset={{ top: headerHeight }}>
|
<ScrollView contentContainerStyle={{ paddingTop: headerHeight }}>
|
||||||
<ListButton onPress={handleLibraryClick}>{t('jellyfin-library')}</ListButton>
|
<ListButton onPress={handleLibraryClick}>{t('jellyfin-library')}</ListButton>
|
||||||
<ListButton onPress={handleCacheClick}>{t('setting-cache')}</ListButton>
|
<ListButton onPress={handleCacheClick}>{t('setting-cache')}</ListButton>
|
||||||
<ListButton onPress={handleSentryClick}>{t('error-reporting')}</ListButton>
|
<ListButton onPress={handleSentryClick}>{t('error-reporting')}</ListButton>
|
||||||
|
|||||||
Reference in New Issue
Block a user