Various UI fixes (#398)

* PLT-6001 Fix right margin on markdown lists

* PLT-6036 Fix post commented on spacing

* PLT-5902 Close keyboard when drawer opens
This commit is contained in:
enahum 2017-03-26 22:23:09 -03:00 committed by GitHub
parent 3209eeb46c
commit 23fa46fad6
3 changed files with 5 additions and 7 deletions

View file

@ -23,7 +23,7 @@ export default class MarkdownList extends PureComponent {
});
return (
<View>
<View style={{marginRight: 20}}>
{children}
</View>
);

View file

@ -144,14 +144,10 @@ class Post extends PureComponent {
const replyBarStyle = [style.replyBar];
if (this.props.isFirstReply && !this.props.commentedOnPost) {
if (this.props.isFirstReply || this.props.commentedOnPost) {
replyBarStyle.push(style.replyBarFirst);
}
if (this.props.isLastReply) {
replyBarStyle.push(style.replyBarLast);
}
return <View style={replyBarStyle}/>;
};
@ -489,7 +485,7 @@ const getStyleSheet = makeStyleSheetFromTheme((theme) => {
opacity: 0.5
},
commentedOn: {
color: theme.centerChannelColor,
color: changeOpacity(theme.centerChannelColor, 0.65),
lineHeight: 21
},
message: {

View file

@ -6,6 +6,7 @@ import {
Dimensions,
Easing,
InteractionManager,
Keyboard,
NavigationExperimental,
View
} from 'react-native';
@ -233,6 +234,7 @@ class Router extends Component {
};
handleLeftDrawerOpen = () => {
Keyboard.dismiss();
setTimeout(() => {
InteractionManager.clearInteractionHandle(this.openLeftHandle);
});