Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
lbry
lbry-react-native
Commits
bfc3b110
Commit
bfc3b110
authored
Jan 10, 2020
by
Akinwale Ariwodola
Browse files
fix channel thumbnail container render. style tweaks for smaller screens.
parent
6bf2f946
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/component/claimResultItem/view.js
View file @
bfc3b110
import
React
from
'
react
'
;
import
{
normalizeURI
,
parseURI
}
from
'
lbry-redux
'
;
import
{
ActivityIndicator
,
Platform
,
Text
,
TouchableOpacity
,
View
}
from
'
react-native
'
;
import
{
navigateToUri
,
formatTitle
,
getDownloadProgress
,
getStorageForFileInfo
}
from
'
utils/helper
'
;
import
{
navigateToUri
,
getDownloadProgress
,
getStorageForFileInfo
}
from
'
utils/helper
'
;
import
Colors
from
'
styles/colors
'
;
import
ChannelIconItem
from
'
component/channelIconItem
'
;
import
channelIconStyle
from
'
styles/channelIcon
'
;
...
...
@@ -116,7 +116,9 @@ class ClaimResultItem extends React.PureComponent {
<
View
style
=
{
fileListStyle
.
detailsContainer
}
>
{(
title
||
name
)
&&
(
<
View
style
=
{
fileListStyle
.
titleContainer
}
>
<
Text
style
=
{
fileListStyle
.
title
}
>
{
formatTitle
(
title
)
||
formatTitle
(
name
)}
<
/Text
>
<
Text
style
=
{
fileListStyle
.
title
}
numberOfLines
=
{
3
}
>
{
title
||
name
}
<
/Text
>
{
isRewardContent
&&
<
Icon
style
=
{
fileListStyle
.
rewardIcon
}
name
=
"
award
"
size
=
{
12
}
/>
}
<
/View
>
)}
...
...
src/component/fileListItem/view.js
View file @
bfc3b110
import
React
from
'
react
'
;
import
{
normalizeURI
,
parseURI
}
from
'
lbry-redux
'
;
import
{
ActivityIndicator
,
Platform
,
Text
,
TouchableOpacity
,
View
}
from
'
react-native
'
;
import
{
navigateToUri
,
formatTitle
,
getDownloadProgress
,
getStorageForFileInfo
}
from
'
utils/helper
'
;
import
{
navigateToUri
,
getDownloadProgress
,
getStorageForFileInfo
}
from
'
utils/helper
'
;
import
Colors
from
'
styles/colors
'
;
import
ChannelIconItem
from
'
component/channelIconItem
'
;
import
channelIconStyle
from
'
styles/channelIcon
'
;
...
...
@@ -151,7 +151,7 @@ class FileListItem extends React.PureComponent {
)}
{
isChannel
&&
(
<
View
style
=
{
fileListStyle
.
t
humbnail
}
>
<
View
style
=
{
fileListStyle
.
channelT
humbnail
View
}
>
<
View
style
=
{[
fileListStyle
.
channelThumbnailContainer
,
this
.
state
.
autoStyle
]}
>
{
hasThumbnail
&&
(
<
FastImage
...
...
@@ -209,8 +209,11 @@ class FileListItem extends React.PureComponent {
{(
title
||
name
)
&&
(
<
View
style
=
{
fileListStyle
.
titleContainer
}
>
<
Text
style
=
{
featuredResult
?
fileListStyle
.
featuredTitle
:
fileListStyle
.
title
}
>
{
formatTitle
(
title
)
||
formatTitle
(
name
)}
<
Text
style
=
{
featuredResult
?
fileListStyle
.
featuredTitle
:
fileListStyle
.
title
}
numberOfLines
=
{
hideChannel
?
4
:
3
}
>
{
title
||
name
}
<
/Text
>
{
isRewardContent
&&
<
Icon
style
=
{
fileListStyle
.
rewardIcon
}
name
=
"
award
"
size
=
{
12
}
/>
}
<
/View
>
...
...
src/styles/fileList.js
View file @
bfc3b110
...
...
@@ -28,7 +28,7 @@ const fileListStyle = StyleSheet.create({
},
featuredTitle
:
{
fontFamily
:
'
Inter-SemiBold
'
,
fontSize
:
screenWidthPixels
<=
720
?
1
2
:
16
,
fontSize
:
screenWidthPixels
<=
720
?
1
1
:
16
,
color
:
Colors
.
White
,
},
thumbnail
:
{
...
...
@@ -70,16 +70,16 @@ const fileListStyle = StyleSheet.create({
},
title
:
{
fontFamily
:
'
Inter-SemiBold
'
,
fontSize
:
screenWidthPixels
<=
720
?
1
2
:
14
,
fontSize
:
screenWidthPixels
<=
720
?
1
1
:
14
,
},
uri
:
{
fontFamily
:
'
Inter-SemiBold
'
,
fontSize
:
screenWidthPixels
<=
720
?
1
2
:
14
,
fontSize
:
screenWidthPixels
<=
720
?
1
1
:
14
,
marginBottom
:
8
,
},
publisher
:
{
fontFamily
:
'
Inter-SemiBold
'
,
fontSize
:
screenWidthPixels
<=
720
?
1
1
:
12
,
fontSize
:
screenWidthPixels
<=
720
?
1
0
:
12
,
marginTop
:
screenWidthPixels
<=
720
?
1
:
3
,
color
:
Colors
.
LbryGreen
,
},
...
...
@@ -96,14 +96,14 @@ const fileListStyle = StyleSheet.create({
},
infoText
:
{
fontFamily
:
'
Inter-Regular
'
,
fontSize
:
screenWidthPixels
<=
720
?
1
1
:
12
,
fontSize
:
screenWidthPixels
<=
720
?
1
0
:
12
,
color
:
Colors
.
ChannelGrey
,
},
downloadInfo
:
{
marginTop
:
2
,
},
progress
:
{
marginTop
:
screenWidthPixels
<=
720
?
2
:
4
,
marginTop
:
screenWidthPixels
<=
720
?
1
:
4
,
},
progressCompleted
:
{
backgroundColor
:
Colors
.
LbryGreen
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment