1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-29 22:48:10 +02:00

Fixed note sorting and changed colour of header

This commit is contained in:
Laurent Cozic
2017-07-27 18:25:42 +01:00
parent 0d37167f39
commit bd06fa781e
13 changed files with 64 additions and 37 deletions

View File

@@ -167,12 +167,6 @@ class SideMenuContentComponent extends Component {
return <View style={{ marginTop: 15, marginBottom: 15, flex: -1, borderBottomWidth: 1, borderBottomColor: globalStyle.dividerColor }} key={key}></View>
}
// onLayout(event) {
// const newWidth = event.nativeEvent.layout.width;
// if (this.state.width == newWidth) return;
// this.setState({ width: newWidth });
// }
render() {
let items = [];
@@ -202,6 +196,7 @@ class SideMenuContentComponent extends Component {
if (items.length) items.push(this.makeDivider('divider_2'));
let lines = Synchronizer.reportToLines(this.props.syncReport);
while (lines.length < 10) lines.push(''); // Add blank lines so that height of report text is fixed and doesn't affect scrolling
const syncReportText = lines.join("\n");
items.push(this.synchronizeButton(this.props.syncStarted ? 'cancel' : 'sync'));