1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-24 08:12:24 +02:00

Mobile: Fixes #2875: Fixed notebook title text overflow (#2877)

* uses no_of_lines to fix the issue

* ellipsizeMode added
This commit is contained in:
Ishant Gupta 2020-05-09 20:03:06 +05:30 committed by GitHub
parent b8158f3b53
commit 5a174b2236
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -409,7 +409,7 @@ class ScreenHeaderComponent extends React.PureComponent {
);
} else {
const title = 'title' in this.props && this.props.title !== null ? this.props.title : '';
return <Text style={this.styles().titleText}>{title}</Text>;
return <Text ellipsizeMode={'tail'} numberOfLines={1} style={this.styles().titleText}>{title}</Text>;
}
};