Fix long post detection (#1713)
This commit is contained in:
parent
cf57feaa45
commit
6179c031cd
3 changed files with 3 additions and 4 deletions
|
|
@ -49,7 +49,7 @@ export default class ChannelLoader extends PureComponent {
|
|||
const bg = this.props.backgroundColor || theme.centerChannelBg;
|
||||
|
||||
return (
|
||||
<View style={style.container}>
|
||||
<View style={[style.container, {backgroundColor: bg}]}>
|
||||
{Array(6).fill().map((item, index) => this.buildSections({
|
||||
key: index,
|
||||
style,
|
||||
|
|
@ -64,7 +64,6 @@ export default class ChannelLoader extends PureComponent {
|
|||
const getStyleSheet = makeStyleSheetFromTheme((theme) => {
|
||||
return {
|
||||
container: {
|
||||
backgroundColor: theme.centerChannelBg,
|
||||
flex: 1,
|
||||
...Platform.select({
|
||||
android: {
|
||||
|
|
|
|||
|
|
@ -191,7 +191,7 @@ export default class PostBody extends PureComponent {
|
|||
const {height: deviceHeight} = Dimensions.get('window');
|
||||
const {showLongPost} = this.props;
|
||||
|
||||
if (!showLongPost && height >= 1000) {
|
||||
if (!showLongPost && height >= (deviceHeight * 1.2)) {
|
||||
this.setState({
|
||||
isLongPost: true,
|
||||
maxHeight: (deviceHeight * 0.6),
|
||||
|
|
|
|||
2
package-lock.json
generated
2
package-lock.json
generated
|
|
@ -15496,7 +15496,7 @@
|
|||
},
|
||||
"rn-placeholder": {
|
||||
"version": "github:enahum/rn-placeholder#4b065f892d7a7f9d921a969f2e72e609ebc0a212",
|
||||
"from": "github:enahum/rn-placeholder",
|
||||
"from": "github:enahum/rn-placeholder#4b065f892d7a7f9d921a969f2e72e609ebc0a212",
|
||||
"requires": {
|
||||
"prop-types": "^15.5.10"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue