Added missing padding seen mostly on mobile and fixed some font rendering
This commit is contained in:
@@ -321,6 +321,7 @@ export const en = {
|
|||||||
accountCreatedOn: 'Account Created on',
|
accountCreatedOn: 'Account Created on',
|
||||||
downloadAPKInstructions:
|
downloadAPKInstructions:
|
||||||
"Go to the latest release, unfold the 'Assets' section, and click 'android-build.apk'.",
|
"Go to the latest release, unfold the 'Assets' section, and click 'android-build.apk'.",
|
||||||
|
discoverySuggestionSectionTitle: 'Suggested for you',
|
||||||
};
|
};
|
||||||
|
|
||||||
export const fr: typeof en = {
|
export const fr: typeof en = {
|
||||||
@@ -647,6 +648,7 @@ export const fr: typeof en = {
|
|||||||
accountCreatedOn: 'Compte créé le',
|
accountCreatedOn: 'Compte créé le',
|
||||||
downloadAPKInstructions:
|
downloadAPKInstructions:
|
||||||
"Télécharger 'android-build.apk' dans la section 'Assets' de la dernière release",
|
"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 = {
|
export const sp: typeof en = {
|
||||||
@@ -980,4 +982,5 @@ export const sp: typeof en = {
|
|||||||
accountCreatedOn: 'Cuenta creada el',
|
accountCreatedOn: 'Cuenta creada el',
|
||||||
downloadAPKInstructions:
|
downloadAPKInstructions:
|
||||||
"Descargue 'android-build.apk' en la sección 'Assets' de la última versión",
|
"Descargue 'android-build.apk' en la sección 'Assets' de la última versión",
|
||||||
|
discoverySuggestionSectionTitle: 'Sugerido para ti',
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -29,7 +29,9 @@ const Leaderboardiew = () => {
|
|||||||
] as const;
|
] as const;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ScrollView>
|
<ScrollView style={{
|
||||||
|
padding: 8,
|
||||||
|
}}>
|
||||||
<Text
|
<Text
|
||||||
style={{
|
style={{
|
||||||
fontSize: 20,
|
fontSize: 20,
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import SongCardInfo from '../../components/V2/SongCardInfo';
|
|||||||
import API from '../../API';
|
import API from '../../API';
|
||||||
import { useNavigation } from '../../Navigation';
|
import { useNavigation } from '../../Navigation';
|
||||||
import GoldenRatio from '../../components/V2/GoldenRatio';
|
import GoldenRatio from '../../components/V2/GoldenRatio';
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
const HomeView = () => {
|
const HomeView = () => {
|
||||||
const suggestionsQuery = useQuery(
|
const suggestionsQuery = useQuery(
|
||||||
@@ -16,6 +17,7 @@ const HomeView = () => {
|
|||||||
const isPhone = screenSize === 'small';
|
const isPhone = screenSize === 'small';
|
||||||
const topSuggestions = suggestionsQuery.data?.slice(0, 4) ?? [];
|
const topSuggestions = suggestionsQuery.data?.slice(0, 4) ?? [];
|
||||||
const suggestions = suggestionsQuery.data?.slice(4) ?? [];
|
const suggestions = suggestionsQuery.data?.slice(4) ?? [];
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ScrollView>
|
<ScrollView>
|
||||||
@@ -25,6 +27,7 @@ const HomeView = () => {
|
|||||||
display: 'flex',
|
display: 'flex',
|
||||||
flexDirection: 'column',
|
flexDirection: 'column',
|
||||||
gap: 16,
|
gap: 16,
|
||||||
|
padding: 8,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
@@ -46,15 +49,15 @@ const HomeView = () => {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Text
|
<Text
|
||||||
|
fontSize={24}
|
||||||
|
fontWeight={'bold'}
|
||||||
style={{
|
style={{
|
||||||
fontSize: 24,
|
|
||||||
fontWeight: 'bold',
|
|
||||||
marginLeft: 16,
|
marginLeft: 16,
|
||||||
marginBottom: 16,
|
marginBottom: 16,
|
||||||
marginTop: 24,
|
marginTop: 24,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{'Suggestions'}
|
{t('discoverySuggestionSectionTitle')}
|
||||||
</Text>
|
</Text>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ const SearchView = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View style={{ display: 'flex', gap: 20 }}>
|
<View style={{ display: 'flex', gap: 20, padding: 8 }}>
|
||||||
<SearchBarComponent onValidate={(query) => setSearchQuery(query)} />
|
<SearchBarComponent onValidate={(query) => setSearchQuery(query)} />
|
||||||
{rawResult.isSuccess ? (
|
{rawResult.isSuccess ? (
|
||||||
<MusicListCC
|
<MusicListCC
|
||||||
|
|||||||
Reference in New Issue
Block a user