mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-04-24 18:13:09 +00:00
trailer section ui changes
This commit is contained in:
parent
41ba4ac12c
commit
76b28d2a2c
2 changed files with 9 additions and 7 deletions
3
app.json
3
app.json
|
|
@ -46,7 +46,8 @@
|
||||||
"icon": "./assets/android/mipmap-xxxhdpi/ic_launcher.png",
|
"icon": "./assets/android/mipmap-xxxhdpi/ic_launcher.png",
|
||||||
"permissions": [
|
"permissions": [
|
||||||
"INTERNET",
|
"INTERNET",
|
||||||
"WAKE_LOCK"
|
"WAKE_LOCK",
|
||||||
|
"WRITE_SETTINGS"
|
||||||
],
|
],
|
||||||
"package": "com.nuvio.app",
|
"package": "com.nuvio.app",
|
||||||
"versionCode": 22,
|
"versionCode": 22,
|
||||||
|
|
|
||||||
|
|
@ -107,13 +107,13 @@ const TrailersSection: React.FC<TrailersSectionProps> = memo(({
|
||||||
const trailerCardWidth = useMemo(() => {
|
const trailerCardWidth = useMemo(() => {
|
||||||
switch (deviceType) {
|
switch (deviceType) {
|
||||||
case 'tv':
|
case 'tv':
|
||||||
return 240;
|
return 280;
|
||||||
case 'largeTablet':
|
case 'largeTablet':
|
||||||
return 220;
|
return 260;
|
||||||
case 'tablet':
|
case 'tablet':
|
||||||
return 200;
|
return 240;
|
||||||
default:
|
default:
|
||||||
return 170; // phone
|
return 200; // phone
|
||||||
}
|
}
|
||||||
}, [deviceType]);
|
}, [deviceType]);
|
||||||
|
|
||||||
|
|
@ -695,8 +695,8 @@ const TrailersSection: React.FC<TrailersSectionProps> = memo(({
|
||||||
color: currentTheme.colors.highEmphasis,
|
color: currentTheme.colors.highEmphasis,
|
||||||
fontSize: isTV ? 16 : isLargeTablet ? 15 : isTablet ? 14 : 12,
|
fontSize: isTV ? 16 : isLargeTablet ? 15 : isTablet ? 14 : 12,
|
||||||
lineHeight: isTV ? 22 : isLargeTablet ? 20 : isTablet ? 18 : 16,
|
lineHeight: isTV ? 22 : isLargeTablet ? 20 : isTablet ? 18 : 16,
|
||||||
marginTop: isTV ? 10 : isLargeTablet ? 9 : isTablet ? 8 : 8,
|
marginTop: isTV ? 16 : isLargeTablet ? 14 : isTablet ? 12 : 10,
|
||||||
marginBottom: isTV ? 4 : isLargeTablet ? 3 : isTablet ? 2 : 2
|
marginBottom: isTV ? 6 : isLargeTablet ? 5 : isTablet ? 4 : 3
|
||||||
}
|
}
|
||||||
]}
|
]}
|
||||||
numberOfLines={2}
|
numberOfLines={2}
|
||||||
|
|
@ -931,6 +931,7 @@ const styles = StyleSheet.create({
|
||||||
trailerInfoBelow: {
|
trailerInfoBelow: {
|
||||||
width: '100%',
|
width: '100%',
|
||||||
alignItems: 'flex-start',
|
alignItems: 'flex-start',
|
||||||
|
paddingLeft: 4,
|
||||||
},
|
},
|
||||||
trailerTitle: {
|
trailerTitle: {
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue