Added missing padding seen mostly on mobile and fixed some font rendering

This commit is contained in:
Clément Le Bihan
2024-01-14 18:43:25 +01:00
parent aebf409cea
commit ce927ea1a4
4 changed files with 13 additions and 5 deletions
+3 -1
View File
@@ -29,7 +29,9 @@ const Leaderboardiew = () => {
] as const;
return (
<ScrollView>
<ScrollView style={{
padding: 8,
}}>
<Text
style={{
fontSize: 20,
+6 -3
View File
@@ -6,6 +6,7 @@ import SongCardInfo from '../../components/V2/SongCardInfo';
import API from '../../API';
import { useNavigation } from '../../Navigation';
import GoldenRatio from '../../components/V2/GoldenRatio';
import { useTranslation } from 'react-i18next';
const HomeView = () => {
const suggestionsQuery = useQuery(
@@ -16,6 +17,7 @@ const HomeView = () => {
const isPhone = screenSize === 'small';
const topSuggestions = suggestionsQuery.data?.slice(0, 4) ?? [];
const suggestions = suggestionsQuery.data?.slice(4) ?? [];
const { t } = useTranslation();
return (
<ScrollView>
@@ -25,6 +27,7 @@ const HomeView = () => {
display: 'flex',
flexDirection: 'column',
gap: 16,
padding: 8,
}}
>
<View
@@ -46,15 +49,15 @@ const HomeView = () => {
}}
>
<Text
fontSize={24}
fontWeight={'bold'}
style={{
fontSize: 24,
fontWeight: 'bold',
marginLeft: 16,
marginBottom: 16,
marginTop: 24,
}}
>
{'Suggestions'}
{t('discoverySuggestionSectionTitle')}
</Text>
<View
style={{
+1 -1
View File
@@ -32,7 +32,7 @@ const SearchView = () => {
}
return (
<View style={{ display: 'flex', gap: 20 }}>
<View style={{ display: 'flex', gap: 20, padding: 8 }}>
<SearchBarComponent onValidate={(query) => setSearchQuery(query)} />
{rawResult.isSuccess ? (
<MusicListCC