Skip to content

Commit

Permalink
Merge pull request #6294 from akshayasalvi/long-attachment-name
Browse files Browse the repository at this point in the history
Added ellipses for long attachment names
  • Loading branch information
Luke9389 authored Nov 30, 2021
2 parents de6aca9 + 8ab60be commit ff64eb0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/AttachmentView.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const AttachmentView = (props) => {
<View style={styles.mr2}>
<Icon src={Expensicons.Paperclip} />
</View>
<Text style={[styles.textStrong, styles.flexShrink1]}>{props.file && props.file.name}</Text>
<Text style={[styles.textStrong, styles.flexShrink1, styles.breakAll, styles.flexWrap, styles.mw100]}>{props.file && props.file.name}</Text>
{props.shouldShowDownloadIcon && (
<View style={styles.ml2}>
<Tooltip text={props.translate('common.download')}>
Expand Down
3 changes: 3 additions & 0 deletions src/styles/utilities/wordBreak/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ export default {
breakWord: {
wordBreak: 'break-word',
},
breakAll: {
wordBreak: 'break-all',
},
};

0 comments on commit ff64eb0

Please sign in to comment.