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

View File

@@ -321,6 +321,7 @@ export const en = {
accountCreatedOn: 'Account Created on',
downloadAPKInstructions:
"Go to the latest release, unfold the 'Assets' section, and click 'android-build.apk'.",
discoverySuggestionSectionTitle: 'Suggested for you',
};
export const fr: typeof en = {
@@ -647,6 +648,7 @@ export const fr: typeof en = {
accountCreatedOn: 'Compte créé le',
downloadAPKInstructions:
"Télécharger 'android-build.apk' dans la section 'Assets' de la dernière release",
discoverySuggestionSectionTitle: 'Suggéré pour vous',
};
export const sp: typeof en = {
@@ -980,4 +982,5 @@ export const sp: typeof en = {
accountCreatedOn: 'Cuenta creada el',
downloadAPKInstructions:
"Descargue 'android-build.apk' en la sección 'Assets' de la última versión",
discoverySuggestionSectionTitle: 'Sugerido para ti',
};

View File

@@ -29,7 +29,9 @@ const Leaderboardiew = () => {
] as const;
return (
<ScrollView>
<ScrollView style={{
padding: 8,
}}>
<Text
style={{
fontSize: 20,

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={{

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