From 27092771abcebd2064f184efb671ead4e22fd254 Mon Sep 17 00:00:00 2001 From: u-e Date: Thu, 3 Jan 2019 17:06:37 +0300 Subject: [PATCH 1/4] enhanced comments height --- src/components/comments/view/commentsView.js | 2 +- src/components/postElements/body/view/postBodyStyles.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/comments/view/commentsView.js b/src/components/comments/view/commentsView.js index 164ff3760..668de5f06 100644 --- a/src/components/comments/view/commentsView.js +++ b/src/components/comments/view/commentsView.js @@ -70,9 +70,9 @@ class CommentsView extends PureComponent { > - {isLoggedIn && ( + Date: Thu, 3 Jan 2019 17:57:34 +0300 Subject: [PATCH 2/4] fixed search bar issues --- .../view/placeHolder/postCardPlaceHolderStyles.js | 1 - .../view/placeHolder/profileSummaryPlaceHolderStyles.js | 1 - src/components/searchModal/view/searchModalStyles.js | 1 + src/components/searchModal/view/searchModalView.js | 4 ++-- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/basicUIElements/view/placeHolder/postCardPlaceHolderStyles.js b/src/components/basicUIElements/view/placeHolder/postCardPlaceHolderStyles.js index ba4c2e45f..b71210dea 100644 --- a/src/components/basicUIElements/view/placeHolder/postCardPlaceHolderStyles.js +++ b/src/components/basicUIElements/view/placeHolder/postCardPlaceHolderStyles.js @@ -8,7 +8,6 @@ export default EStyleSheet.create({ borderWidth: 1, borderTopWidth: 1, borderColor: '$primaryLightBackground', - borderRadius: 5, marginRight: 0, marginLeft: 0, marginTop: 10, diff --git a/src/components/basicUIElements/view/placeHolder/profileSummaryPlaceHolderStyles.js b/src/components/basicUIElements/view/placeHolder/profileSummaryPlaceHolderStyles.js index fb1369c58..e6b711024 100644 --- a/src/components/basicUIElements/view/placeHolder/profileSummaryPlaceHolderStyles.js +++ b/src/components/basicUIElements/view/placeHolder/profileSummaryPlaceHolderStyles.js @@ -8,7 +8,6 @@ export default EStyleSheet.create({ borderWidth: 1, borderTopWidth: 1, borderColor: '$primaryLightBackground', - borderRadius: 5, marginRight: 0, marginLeft: 0, marginTop: 10, diff --git a/src/components/searchModal/view/searchModalStyles.js b/src/components/searchModal/view/searchModalStyles.js index 39755063b..4fd577a23 100644 --- a/src/components/searchModal/view/searchModalStyles.js +++ b/src/components/searchModal/view/searchModalStyles.js @@ -29,6 +29,7 @@ export default EStyleSheet.create({ fontSize: 14, flexGrow: 1, padding: 7, + maxWidth: '$deviceWidth - 100', }, closeIconButton: { width: 20, diff --git a/src/components/searchModal/view/searchModalView.js b/src/components/searchModal/view/searchModalView.js index fbd4b4901..379385cc8 100644 --- a/src/components/searchModal/view/searchModalView.js +++ b/src/components/searchModal/view/searchModalView.js @@ -1,6 +1,6 @@ import React, { PureComponent } from 'react'; import { - View, Text, TextInput, FlatList, TouchableHighlight, SafeAreaView, + View, Text, FlatList, TouchableHighlight, SafeAreaView, } from 'react-native'; import FastImage from 'react-native-fast-image'; @@ -10,7 +10,7 @@ import FastImage from 'react-native-fast-image'; import { Icon } from '../../icon'; import { IconButton } from '../../iconButton'; import { Modal } from '../..'; - +import { TextInput } from '../../textInput'; // Styles // eslint-disable-next-line import styles from './searchModalStyles'; From 992cf8960310a3e0e8b8461243f79d34e19c52a0 Mon Sep 17 00:00:00 2001 From: u-e Date: Thu, 3 Jan 2019 18:08:36 +0300 Subject: [PATCH 3/4] voters routing keys fixed --- src/components/postCard/container/postCardContainer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/postCard/container/postCardContainer.js b/src/components/postCard/container/postCardContainer.js index 4d02abdb4..595af76f1 100644 --- a/src/components/postCard/container/postCardContainer.js +++ b/src/components/postCard/container/postCardContainer.js @@ -58,13 +58,14 @@ class PostCardContainer extends PureComponent { }; _handleOnVotersPress = (activeVotes) => { - const { navigation } = this.props; + const { navigation, content } = this.props; navigation.navigate({ routeName: ROUTES.SCREENS.VOTERS, params: { activeVotes, }, + key: content.permlink, }); }; From ca3c0a37e4e014ba7e9a60e70499dd22b7e18ba6 Mon Sep 17 00:00:00 2001 From: u-e Date: Thu, 3 Jan 2019 18:19:58 +0300 Subject: [PATCH 4/4] #323 /2 fixedd --- src/components/collapsibleCard/view/collapsibleCardView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/collapsibleCard/view/collapsibleCardView.js b/src/components/collapsibleCard/view/collapsibleCardView.js index 4c1598fc3..e6c3618bd 100644 --- a/src/components/collapsibleCard/view/collapsibleCardView.js +++ b/src/components/collapsibleCard/view/collapsibleCardView.js @@ -64,7 +64,7 @@ class CollapsibleCardView extends PureComponent { _toggleOnPress = () => { const { handleOnExpanded, moreHeight } = this.props; Animated.timing(this.anime.height, { - toValue: this.anime.expanded ? this._getMinValue() : this._getMaxValue() + moreHeight, + toValue: this.anime.expanded ? this._getMinValue() : this._getMaxValue() + (moreHeight || 0), duration: 200, }).start(); this.anime.expanded = !this.anime.expanded;