Skip to content

Commit

Permalink
Multiple style fixes/improvements for message list.
Browse files Browse the repository at this point in the history
Fixes #165
  • Loading branch information
borisyankov committed Jan 12, 2017
1 parent a31a816 commit d2accb5
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/message-list/MessageList.js
Expand Up @@ -10,7 +10,7 @@ const styles = StyleSheet.create({
},
container: {
flexGrow: 1,
justifyContent: 'flex-end',
justifyContent: 'space-around',
}
});

Expand Down
9 changes: 8 additions & 1 deletion src/message-list/renderMessages.js
Expand Up @@ -63,4 +63,11 @@ export default ({ auth, subscriptions, messages, isFetching, narrow, doNarrow })
);

return list;
}, isFetching ? [<MessageLoading key="ml1" />, <MessageLoading key="ml2" />, <MessageLoading key="ml3" />] : []);
}, isFetching ? [
<MessageLoading key="ml1" />,
<MessageLoading key="ml2" />,
<MessageLoading key="ml3" />,
<MessageLoading key="ml4" />,
<MessageLoading key="ml5" />,
<MessageLoading key="ml6" />,
] : []);
2 changes: 1 addition & 1 deletion src/message/Subheader.js
Expand Up @@ -35,7 +35,7 @@ export default class Subheader extends React.PureComponent {

return (
<View style={styles.subheader}>
<Text style={styles.username}>
<Text style={styles.username} numberOfLines={1}>
{from}
</Text>
<Timestamp timestamp={timestamp} twentyFourHourTime={twentyFourHourTime} />
Expand Down
2 changes: 1 addition & 1 deletion src/message/headers/StreamMessageHeader.js
Expand Up @@ -17,7 +17,7 @@ const styles = StyleSheet.create({
backgroundColor: '#eee',
},
stream: {
padding: 4,
padding: 6,
fontSize: 16,
},
topic: {
Expand Down
3 changes: 1 addition & 2 deletions src/message/headers/TopicMessageHeader.js
Expand Up @@ -9,8 +9,7 @@ import { topicNarrow } from '../../utils/narrow';

const styles = StyleSheet.create({
topic: {
flex: 1,
padding: 4,
padding: 6,
paddingLeft: 8,
fontSize: 16,
backgroundColor: '#eee',
Expand Down

0 comments on commit d2accb5

Please sign in to comment.