Add ellipsis to the checklist title (#9059)
This commit is contained in:
parent
464b15ffb0
commit
a102b6147e
1 changed files with 11 additions and 1 deletions
|
|
@ -61,6 +61,9 @@ const getStyleSheet = makeStyleSheetFromTheme((theme) => ({
|
|||
skippedText: {
|
||||
textDecorationLine: 'line-through',
|
||||
},
|
||||
titleContainer: {
|
||||
flexShrink: 1,
|
||||
},
|
||||
}));
|
||||
|
||||
type Props = {
|
||||
|
|
@ -134,7 +137,14 @@ const Checklist = ({
|
|||
name={expanded ? 'chevron-down' : 'chevron-right'}
|
||||
style={styles.chevron}
|
||||
/>
|
||||
<Text style={titleTextStyle}>{checklist.title}</Text>
|
||||
<View style={styles.titleContainer}>
|
||||
<Text
|
||||
style={titleTextStyle}
|
||||
numberOfLines={1}
|
||||
>
|
||||
{checklist.title}
|
||||
</Text>
|
||||
</View>
|
||||
<Text style={styles.progressText}>{`${completed} / ${totalNumber} done`}</Text>
|
||||
</View>
|
||||
<ProgressBar
|
||||
|
|
|
|||
Loading…
Reference in a new issue